1
0
Fork 0
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:
Andrew Simachev 2025-03-06 09:24:45 +01:00
parent 9cae8006e6
commit faa3e0e24e
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -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);
};