@griddo/ax 11.10.19 → 11.10.21-rc.0
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "11.10.
|
|
4
|
+
"version": "11.10.21-rc.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -217,5 +217,5 @@
|
|
|
217
217
|
"publishConfig": {
|
|
218
218
|
"access": "public"
|
|
219
219
|
},
|
|
220
|
-
"gitHead": "
|
|
220
|
+
"gitHead": "bd786ac2d068a837754c6be206062a7b8e884834"
|
|
221
221
|
}
|
|
@@ -420,6 +420,9 @@ function savePage(data?: {
|
|
|
420
420
|
try {
|
|
421
421
|
dispatch(setIsSaving(true));
|
|
422
422
|
const { createDraft = false, publishPage, publishDraft, setToast } = data || {};
|
|
423
|
+
|
|
424
|
+
console.log(setToast, "setToast");
|
|
425
|
+
|
|
423
426
|
const {
|
|
424
427
|
pageEditor: {
|
|
425
428
|
selectedEditorID,
|
|
@@ -506,7 +509,7 @@ function savePage(data?: {
|
|
|
506
509
|
dispatch(setIsSaving(false));
|
|
507
510
|
return true;
|
|
508
511
|
} else {
|
|
509
|
-
if(setToast){
|
|
512
|
+
if(typeof setToast === 'function'){
|
|
510
513
|
setToast(saveResponse.data.message);
|
|
511
514
|
} else {
|
|
512
515
|
appActions.handleError(saveResponse)(dispatch);
|