mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
fix: fail to create assistant (#10796)
This commit is contained in:
parent
1e1d5c4a14
commit
ab3083f943
@ -193,8 +193,7 @@ const assistantsSlice = createSlice({
|
||||
})
|
||||
},
|
||||
addAssistantPreset: (state, action: PayloadAction<AssistantPreset>) => {
|
||||
// @ts-ignore ts-2589 false positive
|
||||
state.agents.push(action.payload)
|
||||
state.presets.push(action.payload)
|
||||
},
|
||||
removeAssistantPreset: (state, action: PayloadAction<{ id: string }>) => {
|
||||
state.presets = state.presets.filter((c) => c.id !== action.payload.id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user