(feat:attachments) clear after passing

This commit is contained in:
ManishMadan2882
2025-06-10 02:50:07 +05:30
parent ef35864e16
commit 68dc14c5a1
3 changed files with 20 additions and 3 deletions

View File

@@ -48,7 +48,9 @@ export const uploadSlice = createSlice({
);
},
clearAttachments: (state) => {
state.attachments = [];
state.attachments = state.attachments.filter(
(att) => att.status === 'uploading' || att.status === 'processing',
);
},
},
});