This commit is contained in:
@@ -16,7 +16,8 @@ function CategorySelect(props: Partial<ComboboxProps>) {
|
||||
empty: "Keine Kategorien gefunden",
|
||||
}}
|
||||
data={
|
||||
categories?.map(({ name, id }) => ({ label: name!, value: id! })) ?? []
|
||||
categories?.map(({ name, slug }) => ({ label: name, value: slug })) ??
|
||||
[]
|
||||
}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user