From b00757150e491c4173d76f4e7a99703c06378718 Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Wed, 1 Apr 2020 09:58:30 -0700 Subject: [PATCH] use objectPathJSON --- src/plugins/notebook/components/notebook-embed.vue | 2 +- src/plugins/notebook/utils/notebook-entries.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/notebook/components/notebook-embed.vue b/src/plugins/notebook/components/notebook-embed.vue index c34eba7407..d720aa5ed6 100644 --- a/src/plugins/notebook/components/notebook-embed.vue +++ b/src/plugins/notebook/components/notebook-embed.vue @@ -223,7 +223,7 @@ export default { cssClass: action.cssClass, name: action.name, perform: () => { - action.invoke(self.embed.objectPath); + action.invoke(JSON.parse(self.embed.objectPath)); } }); }); diff --git a/src/plugins/notebook/utils/notebook-entries.js b/src/plugins/notebook/utils/notebook-entries.js index 9acebfbb47..6b026e33ea 100644 --- a/src/plugins/notebook/utils/notebook-entries.js +++ b/src/plugins/notebook/utils/notebook-entries.js @@ -96,7 +96,7 @@ export const createNewEmbed = (snapshotMeta, snapshot = '') => { name, snapshot, type, - objectPath + objectPath: JSON.stringify(objectPath) }; }