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] }