Skip to content

Commit 78c4908

Browse files
committed
feat(manager-dashboard): add validation for organizationId
1 parent b463566 commit 78c4908

File tree

1 file changed

+7
-0
lines changed
  • manager-dashboard/app/views/NewProject

1 file changed

+7
-0
lines changed

manager-dashboard/app/views/NewProject/utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface ProjectFormType {
7676
tileServer: TileServer;
7777
tileServerB?: TileServer;
7878
customOptions?: CustomOptionsForProject;
79+
organizationId?: number;
7980
}
8081

8182
export const PROJECT_INPUT_TYPE_UPLOAD = 'aoi_file';
@@ -273,6 +274,12 @@ export const projectFormSchema: ProjectFormSchema = {
273274
greaterThanCondition(0),
274275
],
275276
},
277+
organizationId: {
278+
validations: [
279+
integerCondition,
280+
greaterThanCondition(0),
281+
],
282+
},
276283
};
277284

278285
baseSchema = addCondition(

0 commit comments

Comments
 (0)