@@ -1,6 +1,6 @@
{
"name": "automa",
- "version": "1.13.2",
+ "version": "1.14.0",
"description": "An extension for automating your browser by connecting blocks",
"license": "MIT",
"repository": {
@@ -324,7 +324,8 @@ const updateHostedWorkflow = throttle(async () => {
if (
(!isBackup && !isHosted) ||
- (workflowExist && Object.keys(workflowPayload.data).length === 0)
+ !workflowExist ||
+ Object.keys(workflowPayload.data).length === 0
)
return;
@@ -125,6 +125,10 @@ export const useWorkflowStore = defineStore('workflow', {
({ isDestroyed }) => !isDestroyed
);
+ if (isFirstTime) {
+ await this.saveToStorage('workflows');
+ }
+
this.retrieved = true;
},
async insert(data = {}, options = {}) {