mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-22 05:26:17 +00:00
The Daily Brief refreshes on its own every few hours, replacing the items array, and the paging controls also let the user sit on a later index. When a refresh returns fewer highlights than before, activeIndex was left pointing past the end of the new list, so currentItem became undefined and the card rendered the "Add some documents" empty state even though highlights existed, with no pagination shown to recover from it. Clamp activeIndex back into range whenever items changes, alongside the existing reply/expansion reset. Also drops a now-unnecessary useExhaustiveDependencies suppression, since the effect body now reads items.length so items is a real dependency. |
||
|---|---|---|
| .. | ||
| browser-extension | ||
| docs | ||
| mcp | ||
| memory-graph-playground | ||
| raycast-extension | ||
| web | ||