From 213c6f3ca5fb690cf8f49193cbc9d33aa1b2a48a Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 17 Oct 2022 19:21:36 +0800 Subject: [PATCH] refactor(nc-gui): change project type in JSONTemplateAdapter --- packages/nc-gui/utils/parsers/JSONTemplateAdapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/utils/parsers/JSONTemplateAdapter.ts b/packages/nc-gui/utils/parsers/JSONTemplateAdapter.ts index 56812c6533..1843e2fd75 100644 --- a/packages/nc-gui/utils/parsers/JSONTemplateAdapter.ts +++ b/packages/nc-gui/utils/parsers/JSONTemplateAdapter.ts @@ -18,7 +18,10 @@ export default class JSONTemplateAdapter extends TemplateGenerator { data: Record _jsonData: string | Record jsonData: Record - project: Record + project: { + title: string + tables: Record[] + } columns: object constructor(name = 'test', data: object, parserConfig = {}) { super()