From 43a5a907c097ef406ed0709872503d61c29a7c35 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 2 Feb 2025 18:31:18 +1300 Subject: [PATCH] check if null --- src/frontend/js/Utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/js/Utils.js b/src/frontend/js/Utils.js index 0a92957..9362eca 100644 --- a/src/frontend/js/Utils.js +++ b/src/frontend/js/Utils.js @@ -143,7 +143,7 @@ class Utils { static isInterfaceEnabled(iface) { const rawValue = iface.enabled ?? iface.interface_enabled; - const value = rawValue?.toString().toLowerCase(); + const value = rawValue?.toString()?.toLowerCase(); return value === "on" || value === "yes" || value === "true"; }