Ahmad Kholid 2 ani în urmă
părinte
comite
619bcd7de8
3 a modificat fișierele cu 6 adăugiri și 6 ștergeri
  1. 1 1
      package.json
  2. 2 2
      src/background/workflowEngine/engine.js
  3. 3 3
      src/popup/pages/Home.vue

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "automa",
   "name": "automa",
-  "version": "1.19.0",
+  "version": "1.20.0",
   "description": "An extension for automating your browser by connecting blocks",
   "description": "An extension for automating your browser by connecting blocks",
   "repository": {
   "repository": {
     "type": "git",
     "type": "git",

+ 2 - 2
src/background/workflowEngine/engine.js

@@ -378,8 +378,8 @@ class WorkflowEngine {
           data: {
           data: {
             logId: this.id,
             logId: this.id,
             data: {
             data: {
-              table: this.referenceData.table,
-              variables: this.referenceData.variables,
+              table: [...this.referenceData.table],
+              variables: { ...this.referenceData.variables },
             },
             },
           },
           },
         });
         });

+ 3 - 3
src/popup/pages/Home.vue

@@ -356,6 +356,9 @@ onMounted(async () => {
   const [tab] = await browser.tabs.query({ active: true, currentWindow: true });
   const [tab] = await browser.tabs.query({ active: true, currentWindow: true });
   state.haveAccess = /^(https?)/.test(tab.url);
   state.haveAccess = /^(https?)/.test(tab.url);
 
 
+  const storage = await browser.storage.local.get('pinnedWorkflows');
+  state.pinnedWorkflows = storage.pinnedWorkflows || [];
+
   await userStore.loadUser({ storage: localStorage, ttl: 1000 * 60 * 5 });
   await userStore.loadUser({ storage: localStorage, ttl: 1000 * 60 * 5 });
   await teamWorkflowStore.loadData();
   await teamWorkflowStore.loadData();
 
 
@@ -367,9 +370,6 @@ onMounted(async () => {
   else if (activeTab === 'host' && hostedWorkflowStore.toArray.length < 0)
   else if (activeTab === 'host' && hostedWorkflowStore.toArray.length < 0)
     activeTab = 'local';
     activeTab = 'local';
 
 
-  const storage = await browser.storage.local.get('pinnedWorkflows');
-  state.pinnedWorkflows = storage.pinnedWorkflows || [];
-
   state.retrieved = true;
   state.retrieved = true;
   state.activeTab = activeTab;
   state.activeTab = activeTab;
 });
 });