Skip to content

Commit

Permalink
setting default value to all
Browse files Browse the repository at this point in the history
  • Loading branch information
moovendhan-v committed Apr 12, 2024
1 parent 5f7b0ed commit b49f71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui_tailwind_shadecn/src/screens/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function Components() {

// this categries getting from a zustand store
const categries = useCategoriesStore((state) => state.categories);
const components = useComponentsStore((state) => state[catogries as keyof ComponentsStore] ?? 'default');
const components = useComponentsStore((state) => state[catogries as keyof ComponentsStore] ?? 'all');
console.log(components);

useEffect(() => {
Expand Down

0 comments on commit b49f71c

Please sign in to comment.