From 2cabe77b555b94e8adfba75cfea1afdce4b3b23a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 27 Mar 2025 20:15:39 -0700 Subject: [PATCH] Fix: add fallback for shvl syntax --- src/widgets/customapi/component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/customapi/component.jsx b/src/widgets/customapi/component.jsx index b8147caa..7624c2f5 100644 --- a/src/widgets/customapi/component.jsx +++ b/src/widgets/customapi/component.jsx @@ -18,7 +18,7 @@ function getValue(field, data) { // shvl is easier, everything else is kept for backwards compatibility. if (typeof field === "string") { - return shvl.get(data, field, null); + return shvl.get(data, field, null) ?? data[field] ?? null; } while (typeof lastField === "object") {