mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-28 08:18:09 -05:00
fix: allow search data re-initialization when permissions change
This commit is contained in:
@@ -40,8 +40,6 @@ export const useSearchModalStore = create<SearchModalState>()(
|
||||
},
|
||||
|
||||
initializeData: (filterBlocks) => {
|
||||
if (get().data.isInitialized) return
|
||||
|
||||
const allBlocks = getAllBlocks()
|
||||
const filteredAllBlocks = filterBlocks(allBlocks) as typeof allBlocks
|
||||
|
||||
|
||||
Reference in New Issue
Block a user