From bd8f5dbe60b7bff898d1aa171c14eacacaff6605 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 4 Feb 2023 19:49:28 +0530 Subject: [PATCH] chore: lint Signed-off-by: Pranav C --- packages/nc-gui/components/cell/TimePicker.vue | 3 ++- packages/nc-gui/utils/projectCreateUtils.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/TimePicker.vue b/packages/nc-gui/components/cell/TimePicker.vue index fa5d003d49..9d517aafd6 100644 --- a/packages/nc-gui/components/cell/TimePicker.vue +++ b/packages/nc-gui/components/cell/TimePicker.vue @@ -25,7 +25,8 @@ const column = inject(ColumnInj)! let isTimeInvalid = $ref(false) -const dateFormat = isMysql(column.value.base_id) || isOracle(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ' +const dateFormat = + isMysql(column.value.base_id) || isOracle(column.value.base_id) ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD HH:mm:ssZ' const localState = $computed({ get() { diff --git a/packages/nc-gui/utils/projectCreateUtils.ts b/packages/nc-gui/utils/projectCreateUtils.ts index 7af0904730..584f925d51 100644 --- a/packages/nc-gui/utils/projectCreateUtils.ts +++ b/packages/nc-gui/utils/projectCreateUtils.ts @@ -54,7 +54,8 @@ const testDataBaseNames = { } export const getTestDatabaseName = (db: { client: ClientType; connection?: { database?: string } }) => { - if (db.client === ClientType.PG || db.client === ClientType.SNOWFLAKE || db.client === ClientType.ORACLEDB) return db.connection?.database + if (db.client === ClientType.PG || db.client === ClientType.SNOWFLAKE || db.client === ClientType.ORACLEDB) + return db.connection?.database return testDataBaseNames[db.client as keyof typeof testDataBaseNames] }