fix: missing undefined check on policy_changes (#122)

* feat: add nix shell

Signed-off-by: Amy <amy+git@amogus.cloud>

* fix: missing undefined check in policy_changes

Signed-off-by: Amy <amy+git@amogus.cloud>

---------

Signed-off-by: Amy <amy+git@amogus.cloud>
This commit is contained in:
Amy
2026-01-01 13:51:30 -04:00
committed by GitHub
parent 393bd00fdd
commit 8d2def3ee3
+1 -1
View File
@@ -322,7 +322,7 @@ export async function handleEvent(
setReady(true);
client.emit("ready");
if (event.policy_changes.length) {
if (event.policy_changes?.length) {
client.emit("policyChanges", event.policy_changes, async () =>
client.api.post("/policy/acknowledge"),
);