only show separator when there are items before

This commit is contained in:
Oleg Isonen committed 2022-10-30 17:41:35 +01:00
1 parent ac47385909
commit 16ddb217f6
1 file changed
+1 -1
@@ -221,7 +221,7 @@ export const FontsManager = ({ value, onChange }: FontsManagerProps) => {
})}
{systemItems.length !== 0 && (
<>
<Separator css={{ my: "$1" }} />
{uploadedItems.length !== 0 && <Separator css={{ my: "$1" }} />}
<ListItem state="disabled">{"System"}</ListItem>
</>
)}