muffin-admin 2.5.3 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ export function BulkActionButton({ label, icon, title, action }) {
|
|
|
25
25
|
|
|
26
26
|
const { mutate, isLoading } = useAction(action)
|
|
27
27
|
|
|
28
|
-
const process = (payload) =>
|
|
28
|
+
const process = (payload?) =>
|
|
29
29
|
mutate(
|
|
30
30
|
{ ids: selectedIds, payload },
|
|
31
31
|
{
|
|
@@ -48,7 +48,7 @@ export function BulkActionButton({ label, icon, title, action }) {
|
|
|
48
48
|
<Button
|
|
49
49
|
label={label}
|
|
50
50
|
title={title}
|
|
51
|
-
onClick={
|
|
51
|
+
onClick={() => (PayloadBuilder ? setPayloadActive(true) : process())}
|
|
52
52
|
disabled={isLoading}
|
|
53
53
|
>
|
|
54
54
|
{buildIcon(icon)}
|
|
@@ -75,7 +75,7 @@ export function ActionButton({ icon, label, title, action }) {
|
|
|
75
75
|
const refresh = useRefresh(),
|
|
76
76
|
notify = useNotify()
|
|
77
77
|
|
|
78
|
-
const process = (payload) =>
|
|
78
|
+
const process = (payload?) =>
|
|
79
79
|
mutate(
|
|
80
80
|
{ record, payload },
|
|
81
81
|
{
|
|
@@ -95,7 +95,7 @@ export function ActionButton({ icon, label, title, action }) {
|
|
|
95
95
|
<Button
|
|
96
96
|
label={label}
|
|
97
97
|
title={title}
|
|
98
|
-
onClick={
|
|
98
|
+
onClick={() => (PayloadBuilder ? setPayloadActive(true) : process())}
|
|
99
99
|
disabled={isLoading}
|
|
100
100
|
>
|
|
101
101
|
{buildIcon(icon)}
|