Skip to content

Commit

Permalink
Prop name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasmadei authored and blcham committed Jun 26, 2024
1 parent 16d367a commit 8cf493f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/dialog/faultEvent/FaultEventCreation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface Props {
eventValue?: FaultEvent;
isEditedEvent?: boolean;
disabled?: boolean;
isSimplified?: boolean;
isEditMode?: boolean;
}

// TODO: remove ts-ignores and migrate to higher version of react-hook-form
Expand All @@ -26,7 +26,7 @@ const FaultEventCreation = ({
eventValue,
isEditedEvent = false,
disabled,
isSimplified, // Hides props that are needed only for creation
isEditMode,
}: Props) => {
const { classes } = useStyles();
const { t } = useTranslation();
Expand Down Expand Up @@ -189,7 +189,7 @@ const FaultEventCreation = ({
/>

{/* Probability field */}
{!isSimplified && eventTypeWatch === EventType.BASIC && (
{!isEditMode && eventTypeWatch === EventType.BASIC && (
<TextField
label={t("newFtaModal.probability")}
type="number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const FaultEventShapeToolPane = ({ data, onEventUpdated, refreshTree }: Props) =
eventValue={data}
isEditedEvent={true}
disabled={data ? data.eventType === EventType.INTERMEDIATE || data.isReference : false}
isSimplified={true}
isEditMode={true}
/>
</ReusableFaultEventsProvider>
);
Expand Down

0 comments on commit 8cf493f

Please sign in to comment.