From 39292e88a87a222d1ee37be84229bb609f5ac88f Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 16 Oct 2023 17:11:51 +0100 Subject: [PATCH] Correct error message to say sheets when it's a Google sheet. --- .../backend/Datasources/TableImportSelection/index.svelte | 2 +- packages/builder/src/stores/backend/datasources.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/backend/Datasources/TableImportSelection/index.svelte b/packages/builder/src/components/backend/Datasources/TableImportSelection/index.svelte index 1fc83d4978..3bc2457c99 100644 --- a/packages/builder/src/components/backend/Datasources/TableImportSelection/index.svelte +++ b/packages/builder/src/components/backend/Datasources/TableImportSelection/index.svelte @@ -57,7 +57,7 @@ {#if $store.error} {/if} diff --git a/packages/builder/src/stores/backend/datasources.js b/packages/builder/src/stores/backend/datasources.js index 9265f34b96..11184f2caa 100644 --- a/packages/builder/src/stores/backend/datasources.js +++ b/packages/builder/src/stores/backend/datasources.js @@ -11,15 +11,11 @@ import { TableNames } from "constants" class TableImportError extends Error { constructor(errors) { - super(`Error importing tables: ${Object.keys(errors).join(", ")}`) + super() this.name = "TableImportError" this.errors = errors } - get title() { - return `Error fetching tables` - } - get description() { let message = "" for (const key in this.errors) {