fix(lint): types

This commit is contained in:
Alex
2024-09-11 19:01:42 +01:00
parent 70251222cc
commit 8ca590559d

View File

@@ -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(