Skip to content

Commit c61630a

Browse files
committed
remove cached chains if context filter is passed empty chain ids array
1 parent 5daf0d0 commit c61630a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function ChatPageContent(props: {
100100
setHasUserUpdatedContextFilters(true);
101101

102102
// Cache the chains when context is updated
103-
if (v?.chainIds) {
103+
if (v?.chainIds && v.chainIds.length > 0) {
104104
localStorage.setItem(
105105
NEBULA_LAST_USED_CHAIN_IDS_KEY,
106106
JSON.stringify(v.chainIds),

0 commit comments

Comments
 (0)