mirror of
https://github.com/zadam/trilium.git
synced 2025-11-26 02:24:23 +01:00
fix(react/promoted_attributes): unable to read trim at server level
This commit is contained in:
parent
081ac2d109
commit
08ade8371c
@ -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<UpdateAttributeResponse>(
|
||||
`notes/${note.noteId}/attribute`,
|
||||
{
|
||||
attributeId: cell.valueAttr.attributeId,
|
||||
type: cell.valueAttr.type,
|
||||
name: cell.valueName,
|
||||
value: value
|
||||
value: value || ""
|
||||
},
|
||||
componentId
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user