diff --git a/src/components/dashboard/content/list/FaultTreeOverview.tsx b/src/components/dashboard/content/list/FaultTreeOverview.tsx
index 0d23b260..fd5d7552 100644
--- a/src/components/dashboard/content/list/FaultTreeOverview.tsx
+++ b/src/components/dashboard/content/list/FaultTreeOverview.tsx
@@ -14,6 +14,7 @@ import { Box, Button } from "@mui/material";
import { useTranslation } from "react-i18next";
import { SELECTED_VIEW } from "@utils/constants";
import {useSelectedSystem} from "@hooks/useSelectedSystem";
+import {ReusableFaultEventsProvider} from "@hooks/useReusableFaultEvents";
const FaultTreeOverview = () => {
const { t } = useTranslation();
@@ -94,12 +95,12 @@ const FaultTreeOverview = () => {
handleCloseDialog={() => setEditDialogOpen(false)}
faultTree={contextMenuSelectedTree}
/>
-
+
setCreateFaultTreeDialogOpen(false)}
/>
-
+
);
};
diff --git a/src/components/dialog/faultEvent/FaultEventDialog.tsx b/src/components/dialog/faultEvent/FaultEventDialog.tsx
index 096b90ce..765a7f29 100644
--- a/src/components/dialog/faultEvent/FaultEventDialog.tsx
+++ b/src/components/dialog/faultEvent/FaultEventDialog.tsx
@@ -11,8 +11,9 @@ import { useForm } from "react-hook-form";
import { schema } from "./FaultEventCreation.schema";
import { yupResolver } from "@hookform/resolvers/yup";
import { eventFromHookFormValues } from "@services/faultEventService";
-import { FaultEventsReuseProvider } from "@hooks/useReusableFaultEvents";
+import { ReusableFaultEventsProvider } from "@hooks/useReusableFaultEvents";
import { FaultEvent } from "@models/eventModel";
+import {useSelectedSystem} from "@hooks/useSelectedSystem";
interface Props {
open: boolean;
@@ -25,6 +26,7 @@ interface Props {
const FaultEventDialog = ({ open, eventIri, treeUri, onCreated, onClose }: Props) => {
const [showSnackbar] = useSnackbar();
+ const [selectedSystem] = useSelectedSystem();
const useFormMethods = useForm({ resolver: yupResolver(schema) });
const { handleSubmit, formState } = useFormMethods;
const { isSubmitting } = formState;
@@ -48,9 +50,9 @@ const FaultEventDialog = ({ open, eventIri, treeUri, onCreated, onClose }: Props
Create Event
-
+
-
+