mirror of
https://github.com/zadam/trilium.git
synced 2025-11-26 10:34:25 +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);
|
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>(
|
return server.put<UpdateAttributeResponse>(
|
||||||
`notes/${note.noteId}/attribute`,
|
`notes/${note.noteId}/attribute`,
|
||||||
{
|
{
|
||||||
attributeId: cell.valueAttr.attributeId,
|
attributeId: cell.valueAttr.attributeId,
|
||||||
type: cell.valueAttr.type,
|
type: cell.valueAttr.type,
|
||||||
name: cell.valueName,
|
name: cell.valueName,
|
||||||
value: value
|
value: value || ""
|
||||||
},
|
},
|
||||||
componentId
|
componentId
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user