Browse Source

fix(gui-v2): url.split -> url?.split

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
19aefb0f82
  1. 2
      packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts

2
packages/nc-gui-v2/utils/parsers/ExcelUrlTemplateAdapter.ts

@ -8,7 +8,7 @@ export default class ExcelUrlTemplateAdapter extends ExcelTemplateAdapter {
constructor(url: string, parserConfig: Record<string, any>) {
const { $api } = useNuxtApp()
const name = url.split('/').pop()
const name = url?.split('/').pop()
super(name, parserConfig)
this.url = url
this.excelData = null

Loading…
Cancel
Save