From debc6f3ebfc7419a73a6ff752d5b584616d8a60b Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Wed, 2 Apr 2025 12:10:39 -0500 Subject: [PATCH] turn off replacing of displayValue with defaultValue --- src/qqq/utils/qqq/ValueUtils.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/qqq/utils/qqq/ValueUtils.tsx b/src/qqq/utils/qqq/ValueUtils.tsx index 3d90a67..552cfbc 100644 --- a/src/qqq/utils/qqq/ValueUtils.tsx +++ b/src/qqq/utils/qqq/ValueUtils.tsx @@ -267,7 +267,13 @@ class ValueUtils { if (!displayValue && field.defaultValue) { - displayValue = field.defaultValue; + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // note, at one point in time, we used a field's default value here if no displayValue... but that feels 100% wrong, // + // e.g., a null field would show up (on a query or view screen) has having some value! // + // not sure if this was maybe supposed to be displayValue = rawValue, but, keep that in mind, and keep this block here // + // in case we run into issues and need to revisit/rethink // + ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + // displayValue = field.defaultValue; } if (field.type === QFieldType.DATE_TIME)