hoist EMPTY_SET default in MemoriesGrid (#856)

This commit is contained in:
Vedant Mahajan 2026-05-06 22:31:56 +05:30 • committed by GitHub
parent f14cf5562e
commit f850a0e8a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -129,6 +129,7 @@ function fetchOgData(url: string): Promise<OgData | null> {
const PAGE_SIZE = 100
const MAX_TOTAL = 1000
const EMPTY_SET = new Set<string>()
const MEMORIES_LOADING_LABELS = [
"Getting your supermemories…",
@ -231,7 +232,7 @@ export function MemoriesGrid({
isChatOpen,
onOpenDocument,
isSelectionMode = false,
selectedDocumentIds = new Set(),
selectedDocumentIds = EMPTY_SET,
onEnterSelectionMode,
onToggleSelection,
onClearSelection,