From 110326b0c98f6beeb976f8802a7cd1e08fd1d691 Mon Sep 17 00:00:00 2001 From: Ahmad Kholid Date: Tue, 12 Apr 2022 09:58:47 +0800 Subject: [PATCH] v1.7.0 --- package.json | 2 +- src/components/newtab/workflow/WorkflowDataTable.vue | 4 ++-- src/components/newtab/workflow/edit/EditGoogleSheets.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index dabe94227..50696b49c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "automa", - "version": "1.6.7", + "version": "1.7.0", "description": "An extension for automating your browser by connecting blocks", "license": "MIT", "repository": { diff --git a/src/components/newtab/workflow/WorkflowDataTable.vue b/src/components/newtab/workflow/WorkflowDataTable.vue index b781260b4..07668e938 100644 --- a/src/components/newtab/workflow/WorkflowDataTable.vue +++ b/src/components/newtab/workflow/WorkflowDataTable.vue @@ -54,7 +54,7 @@ const props = defineProps({ default: () => ({}), }, }); -const emit = defineEmits(['update', 'close']); +const emit = defineEmits(['update', 'close', 'change']); const { t } = useI18n(); @@ -123,7 +123,7 @@ onMounted(() => { } return column; - }) || props.workflow.table; + }) || []; if (isChanged) { const data = { table: state.columns }; diff --git a/src/components/newtab/workflow/edit/EditGoogleSheets.vue b/src/components/newtab/workflow/edit/EditGoogleSheets.vue index d26d7a625..47510f210 100644 --- a/src/components/newtab/workflow/edit/EditGoogleSheets.vue +++ b/src/components/newtab/workflow/edit/EditGoogleSheets.vue @@ -215,10 +215,10 @@ async function previewData() { range: props.data.range, }); - if (response.status !== 200) { + if (!response.ok) { const error = await response.json(); - throw new Error(response.statusText || error.statusMessage); + throw new Error(error.statusMessage || response.statusText); } const { values } = await response.json();