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
}
sslUse?: SSLUsage
extraParameters: Record<string, string>[]
extraParameters: { key: string; value: string }[]
}
export interface DefaultConnection {

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

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

Loading…
Cancel
Save