mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
(feat:attachments) clear after passing
This commit is contained in:
@@ -48,7 +48,9 @@ export const uploadSlice = createSlice({
|
||||
);
|
||||
},
|
||||
clearAttachments: (state) => {
|
||||
state.attachments = [];
|
||||
state.attachments = state.attachments.filter(
|
||||
(att) => att.status === 'uploading' || att.status === 'processing',
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user