Skip to content

Commit 0e8203d

Browse files
authored
Fix ElementIcon: missing type management in switch (#574)
causing console Warning: unknown type [PARAMETERS] Signed-off-by: sBouzols <[email protected]>
1 parent bda868d commit 0e8203d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/mapper/elementIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function getFileIcon(type: ElementType, style: SxProps<Theme>) {
2727
return <NoteAltIcon sx={style} />;
2828
case ElementType.FILTER:
2929
return <ArticleIcon sx={style} />;
30+
case ElementType.PARAMETERS:
3031
case ElementType.VOLTAGE_INIT_PARAMETERS:
3132
case ElementType.SECURITY_ANALYSIS_PARAMETERS:
3233
case ElementType.LOADFLOW_PARAMETERS:

0 commit comments

Comments
 (0)