Skip to content

Commit

Permalink
fix(lint): types
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Sep 11, 2024
1 parent 7025122 commit 8ca5905
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions frontend/src/conversation/sharedConversationSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,12 @@ export const sharedConversationSlice = createSlice({
) {
const { index, query } = action.payload;
if (!state.queries[index].sources) {
state.queries[index].sources = query?.sources;
} else {
state.queries[index].sources!.push(query.sources![0]);
state.queries[index].sources = query.sources ?? [];
} else if (query.sources && query.sources.length > 0) {
state.queries[index].sources = [
...(state.queries[index].sources ?? []),
...query.sources,
];
}
},
raiseError(
Expand Down

0 comments on commit 8ca5905

Please sign in to comment.