diff --git a/src/pages/instances/InstanceGraphicConsole.tsx b/src/pages/instances/InstanceGraphicConsole.tsx index fab98364aa..434e32eb57 100644 --- a/src/pages/instances/InstanceGraphicConsole.tsx +++ b/src/pages/instances/InstanceGraphicConsole.tsx @@ -116,7 +116,7 @@ const InstanceGraphicConsole: FC = ({ useEffect(handleResize, [notify.notification?.message]); useEventListener("spice-wheel", (e) => { - if (!spiceRef.current?.parentElement || !Object.hasOwn(e, "detail")) { + if (!spiceRef.current?.parentElement || !("detail" in e)) { return; } const wheelEvent = (e as SpiceWheelEvent).detail.wheelEvent;