mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-22 07:58:01 +03:00
fix: empty collection/group title
This commit is contained in:
@@ -37,7 +37,7 @@ export default function EditDialog(props: GroupEditDialogProps): ReactElement
|
|||||||
type: "collection",
|
type: "collection",
|
||||||
timestamp: props.collection?.timestamp ?? Date.now(),
|
timestamp: props.collection?.timestamp ?? Date.now(),
|
||||||
color: (color === "pinned") ? undefined : color!,
|
color: (color === "pinned") ? undefined : color!,
|
||||||
title,
|
title: title ? title : undefined,
|
||||||
items: props.collection?.items ?? []
|
items: props.collection?.items ?? []
|
||||||
});
|
});
|
||||||
else if (color === "pinned")
|
else if (color === "pinned")
|
||||||
@@ -51,7 +51,7 @@ export default function EditDialog(props: GroupEditDialogProps): ReactElement
|
|||||||
type: "group",
|
type: "group",
|
||||||
pinned: false,
|
pinned: false,
|
||||||
color: color!,
|
color: color!,
|
||||||
title,
|
title: title ? title : undefined,
|
||||||
items: props.group?.items ?? []
|
items: props.group?.items ?? []
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user