@griddo/ax 11.10.19 → 11.10.20

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.19",
4
+ "version": "11.10.20",
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": "857cf0aff1532903cf81af0656bfce05c4fdff4a"
220
+ "gitHead": "cc4cb47324099928259991fc63e6a516679c83db"
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);