Skip to content

Commit

Permalink
Add missing ElementType and update filterCreation props interface (#553)
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub LABIDI <[email protected]>
  • Loading branch information
ayolab authored Aug 29, 2024
1 parent da2e493 commit b6df7a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/filter/filter-creation-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const formSchema = yup

export interface FilterCreationDialogProps {
open: boolean;
onClose: () => void;
onClose: (e?: unknown, nextSelectedDirectoryId?: string | null) => void;
activeDirectory?: UUID;
elementExists?: ElementExistsType;
language?: string;
Expand Down
1 change: 1 addition & 0 deletions src/utils/ElementType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export enum ElementType {
CASE = 'CASE',
FILTER = 'FILTER',
MODIFICATION = 'MODIFICATION',
PARAMETERS = 'PARAMETERS',
CONTINGENCY_LIST = 'CONTINGENCY_LIST',
VOLTAGE_INIT_PARAMETERS = 'VOLTAGE_INIT_PARAMETERS',
SECURITY_ANALYSIS_PARAMETERS = 'SECURITY_ANALYSIS_PARAMETERS',
Expand Down
2 changes: 2 additions & 0 deletions src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export type ElementAttributes = {
parentUuid: null | UUID;
specificMetadata: Record<string, object>;
uploading?: boolean;
hasMetadata?: boolean;
subtype?: string;
};

export type Equipment =
Expand Down

0 comments on commit b6df7a7

Please sign in to comment.