mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed empty tags fallback
This commit is contained in:
parent
20f49a52b5
commit
41e4190096
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export const Tags: FC<IProps> = ({ tags, is_editable, onTagsChange, ...props })
|
|||
|
||||
const [catTags, ordinaryTags] = useMemo(
|
||||
() =>
|
||||
tags.reduce(
|
||||
(tags || []).reduce(
|
||||
(obj, tag) =>
|
||||
tag.title.substr(0, 1) === '/' ? [[...obj[0], tag], obj[1]] : [obj[0], [...obj[1], tag]],
|
||||
[[], []]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue