Added check.

This commit is contained in:
Tatiana Lopaeva 2024-07-16 18:08:42 +03:00
parent 6bf024b2ea
commit dab0a3685f

View File

@ -1130,17 +1130,19 @@ class FilesActionStore {
return;
}
const result = await Promise.allSettled(actions);
if (!result) return;
if (action === "unpin") {
const result = await Promise.allSettled(actions);
if (!result) return;
result.forEach((result) => {
if (result.value) {
withFinishedOperation.push(result.value);
}
if (!result.value) toastr.error(result.reason.response?.data?.error);
});
result.forEach((result) => {
if (result.value) {
withFinishedOperation.push(result.value);
}
if (!result.value) toastr.error(result.reason.response?.data?.error);
});
updatingFolderList(withFinishedOperation, isPin);
updatingFolderList(withFinishedOperation, isPin);
}
};
setMuteAction = (action, item, t) => {