Browse Source

fix: type for extra parameters

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3306/head
mertmit 2 years ago
parent
commit
6a4081ee1e
  1. 2
      packages/nc-gui-v2/utils/projectCreateUtils.ts
  2. 2
      packages/nc-gui-v2/utils/validation.ts

2
packages/nc-gui-v2/utils/projectCreateUtils.ts

@ -12,7 +12,7 @@ export interface ProjectCreateForm {
inflectionTable?: string inflectionTable?: string
} }
sslUse?: SSLUsage sslUse?: SSLUsage
extraParameters: Record<string, string>[] extraParameters: { key: string; value: string }[]
} }
export interface DefaultConnection { export interface DefaultConnection {

2
packages/nc-gui-v2/utils/validation.ts

@ -129,7 +129,7 @@ export const importExcelUrlValidator = {
} }
export const extraParameterValidator = { export const extraParameterValidator = {
validator: (_: unknown, value: any) => { validator: (_: unknown, value: { key: string; value: string }[]) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
for (const param of value) { for (const param of value) {
if (param.key === '') { if (param.key === '') {

Loading…
Cancel
Save