From fb3cd85b411315cac0abd22d050ee88929754833 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 15 Apr 2026 09:20:08 -0500 Subject: [PATCH] fix(ocp): fixes to make sure we always hav printer.data as an array or dont do anything --- backend/ocp/ocp.printer.manage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/ocp/ocp.printer.manage.ts b/backend/ocp/ocp.printer.manage.ts index 263ba98..d609f71 100644 --- a/backend/ocp/ocp.printer.manage.ts +++ b/backend/ocp/ocp.printer.manage.ts @@ -62,7 +62,7 @@ export const printerSync = async () => { }); } - if (printers?.success) { + if (printers?.success && Array.isArray(printers.data)) { const ignorePrinters = ["pdf24", "standard"]; const validPrinters =