mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
fix details format validation
This commit is contained in:
parent
9cae8006e6
commit
faa3e0e24e
1 changed files with 4 additions and 1 deletions
|
@ -186,9 +186,12 @@ const SidebarPageType = observer(class SidebarPageType extends React.Component<I
|
|||
|
||||
if (rootId) {
|
||||
const update = [];
|
||||
|
||||
for (const key in this.update) {
|
||||
update.push({ key, value: this.object[key] });
|
||||
const value = Relation.formatValue(S.Record.getRelationByKey(key), this.update[key], true);
|
||||
update.push({ key, value });
|
||||
};
|
||||
|
||||
if (update.length) {
|
||||
C.ObjectListSetDetails([ rootId ], update);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue