mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Improve comments
This commit is contained in:
parent
71ae8a9396
commit
b37993cea7
@ -232,7 +232,8 @@ const BulkActionsBar = ({
|
||||
await onConfirmPublishAll(selectedEntries);
|
||||
clearSelectedEntries();
|
||||
} catch (err) {
|
||||
// the notification is handle in handleConfirmPublishAllData
|
||||
// The notification is handle in content-manager/pages/ListView/index.js
|
||||
// bulkPublishMutation onError callback
|
||||
} finally {
|
||||
setIsConfirmButtonLoading(false);
|
||||
togglePublishModal();
|
||||
@ -246,7 +247,8 @@ const BulkActionsBar = ({
|
||||
await onConfirmUnpublishAll(selectedEntries);
|
||||
clearSelectedEntries();
|
||||
} catch (err) {
|
||||
// the notification is handle in handleConfirmUnpublishAllData
|
||||
// The error is handled in content-manager/pages/ListView/index.js
|
||||
// bulkUnpublishMutation onError callback
|
||||
} finally {
|
||||
setIsConfirmButtonLoading(false);
|
||||
toggleUnpublishModal();
|
||||
|
@ -103,7 +103,6 @@ function ListView({
|
||||
const fetchClient = useFetchClient();
|
||||
const { post, del } = fetchClient;
|
||||
|
||||
// Bulk publish mutation passing the fetchClient's url and data arguments
|
||||
const bulkPublishMutation = useMutation(
|
||||
(data) =>
|
||||
post(`/content-manager/collection-types/${contentType.uid}/actions/bulkPublish`, data),
|
||||
|
Loading…
x
Reference in New Issue
Block a user