From 08ade8371cc071e5f4d025f7bd5e3d7d7be0cd16 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 23 Nov 2025 13:55:25 +0200 Subject: [PATCH] fix(react/promoted_attributes): unable to read trim at server level --- apps/client/src/widgets/PromotedAttributes.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx index ad501e35d..b7ffca060 100644 --- a/apps/client/src/widgets/PromotedAttributes.tsx +++ b/apps/client/src/widgets/PromotedAttributes.tsx @@ -436,14 +436,14 @@ function buildPromotedAttributeLabelChangedListener({ note, cell, componentId, . return debounce(onChange, 250); } -function updateAttribute(note: FNote, cell: Cell, componentId: string, value: string) { +function updateAttribute(note: FNote, cell: Cell, componentId: string, value: string | undefined) { return server.put( `notes/${note.noteId}/attribute`, { attributeId: cell.valueAttr.attributeId, type: cell.valueAttr.type, name: cell.valueName, - value: value + value: value || "" }, componentId );