* Fix api filter hook

cameras, labels, sub labels, plates, and zones could be parsed as numeric values rather than strings, which would break the explore filter. This change adds an optional param to the useApiFilterArgs hook to always parse keys as string[]

* fix notifications register button from being incorrectly disabled
This commit is contained in:
Josh Hawkins
2025-08-06 22:09:43 -05:00
committed by GitHub
parent 5fc030c3f6
commit b6b3178e3d
3 changed files with 35 additions and 20 deletions

View File

@@ -523,7 +523,9 @@ export default function NotificationView({
aria-label={t("notification.registerDevice")}
disabled={
(!config?.notifications.enabled &&
notificationCameras.length === 0) ||
notificationCameras.length === 0 &&
!form.watch("allEnabled") &&
form.watch("cameras").length === 0) ||
publicKey == undefined
}
onClick={() => {