diff --git a/src/components/Xterm.tsx b/src/components/Xterm.tsx index 97e221960c..9985cf4750 100644 --- a/src/components/Xterm.tsx +++ b/src/components/Xterm.tsx @@ -176,7 +176,7 @@ export default forwardRef(function Xterm( if (onCursorMove) xtermRef.current.onCursorMove(onCursorMove); if (onData) xtermRef.current.onData(onData); if (onKey) xtermRef.current.onKey(onKey); - if (onLineFeed) xtermRef.current.onLineFeed; + if (onLineFeed) xtermRef.current.onLineFeed(onLineFeed); if (onScroll) xtermRef.current.onScroll(onScroll); if (onSelectionChange) xtermRef.current.onSelectionChange(onSelectionChange); diff --git a/src/components/forms/NetworkDevicesForm.tsx b/src/components/forms/NetworkDevicesForm.tsx index 4e9345736a..fd8e7817c0 100644 --- a/src/components/forms/NetworkDevicesForm.tsx +++ b/src/components/forms/NetworkDevicesForm.tsx @@ -51,7 +51,7 @@ const NetworkDevicesForm: FC = ({ formik, project }) => { queryFn: () => fetchNetworks(project), }); - if (profileError) { + if (networkError) { notify.failure("Loading networks failed", networkError); } diff --git a/src/context/toastNotificationProvider.tsx b/src/context/toastNotificationProvider.tsx index 44f6a985f6..e514f34773 100644 --- a/src/context/toastNotificationProvider.tsx +++ b/src/context/toastNotificationProvider.tsx @@ -173,7 +173,7 @@ const ToastNotificationProvider: FC = ({ children }) => { }; const latestNotification = notifications[notifications.length - 1]; - const hasNotifications = !!notifications?.length; + const hasNotifications = !!notifications.length; const showNotification = hasNotifications && !showList && notificationTimer; const showNotificationList = hasNotifications && showList; return ( diff --git a/src/pages/images/CustomIsoSelector.tsx b/src/pages/images/CustomIsoSelector.tsx index def3791e37..4426337e9a 100644 --- a/src/pages/images/CustomIsoSelector.tsx +++ b/src/pages/images/CustomIsoSelector.tsx @@ -72,7 +72,7 @@ const CustomIsoSelector: FC = ({