refactored link state management + a lot of other changes...

This commit is contained in:
daniel31x13
2024-08-13 00:08:57 -04:00
parent a73e5fa6c6
commit 80f366cd7b
58 changed files with 1302 additions and 819 deletions
@@ -24,7 +24,7 @@ export default function CollectionSelection({
showDefaultValue = true,
creatable = true,
}: Props) {
const { data: collections } = useCollections();
const { data: collections = [] } = useCollections();
const router = useRouter();
+1 -1
View File
@@ -13,7 +13,7 @@ type Props = {
};
export default function TagSelection({ onChange, defaultValue }: Props) {
const { data: tags } = useTags();
const { data: tags = [] } = useTags();
const [options, setOptions] = useState<Options[]>([]);