Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/automaapp/automa into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Dec 14, 2023
2 parents b1cdde0 + 4b22e8d commit 22f4362
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stores/workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ export const useWorkflowStore = defineStore('workflow', {
const { pinnedWorkflows } = await browser.storage.local.get(
'pinnedWorkflows'
);
const pinnedWorkflowIndex =
pinnedWorkflows && pinnedWorkflows.indexOf(id);
const pinnedWorkflowIndex = pinnedWorkflows
? pinnedWorkflows.indexOf(id)
: -1;
if (pinnedWorkflowIndex !== -1) {
pinnedWorkflows.splice(pinnedWorkflowIndex, 1);
await browser.storage.local.set({ pinnedWorkflows });
Expand Down

0 comments on commit 22f4362

Please sign in to comment.