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();