From 19aefb0f82a2070c33d118f5e850608fbb592c68 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 25 Jul 2022 12:07:54 +0800 Subject: [PATCH] fix(gui-v2): url.split -> url?.split --- packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts b/packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts index 430867889a..e628498340 100644 --- a/packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts +++ b/packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts @@ -8,7 +8,7 @@ export default class ExcelUrlTemplateAdapter extends ExcelTemplateAdapter { constructor(url: string, parserConfig: Record) { const { $api } = useNuxtApp() - const name = url.split('/').pop() + const name = url?.split('/').pop() super(name, parserConfig) this.url = url this.excelData = null