Skip to content

Commit

Permalink
Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jul 16, 2024
1 parent dce9037 commit c82a036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export default function TabContainer() {

if (!indexData.hasItems) {
setTabKey(TabKey.Index);
} else {
setTabKey(TabKey.Chat);
}
}, [loading, indexData]);

Expand Down
2 changes: 1 addition & 1 deletion web-app/src/store/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const fetchIndex = createAsyncThunk(
}

try {
await dispatch(fetchIndexItems({ indexID: index.id, api })).unwrap();
dispatch(fetchIndexItems({ indexID: index.id, api })).unwrap();
} catch (err) {
console.error("Error fetching index items", err);
}
Expand Down

0 comments on commit c82a036

Please sign in to comment.