1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

fix relationLinks

This commit is contained in:
Andrew Simachev 2021-05-13 14:26:31 +03:00
parent 9c078fd7ab
commit a4649bde27
2 changed files with 2 additions and 4 deletions

View file

@ -38,7 +38,7 @@ class ListIndex extends React.Component<Props, {}> {
const Item = SortableElement((item: any) => {
const content = item.content || {};
const object = detailStore.get(root, content.targetBlockId, [ 'relationFormat' ]);
const object = detailStore.get(root, content.targetBlockId, []);
const { _objectEmpty_, name, layout, iconEmoji, iconImage } = object;
const type = dbStore.getObjectType(object.type);
const cn = [ 'item' ];
@ -53,8 +53,6 @@ class ListIndex extends React.Component<Props, {}> {
);
};
console.log(object.name, object.layout);
let icon = null;
let showMenu = true;
let btn = null;

View file

@ -2,7 +2,7 @@ import { observable, action, set, intercept, decorate } from 'mobx';
import { I } from 'ts/lib';
const Constant = require('json/constant.json');
const DEFAULT_KEYS = [ 'id', 'name', 'description', 'iconEmoji', 'iconImage', 'type', 'layout', 'isHidden', 'done' ];
const DEFAULT_KEYS = [ 'id', 'name', 'description', 'iconEmoji', 'iconImage', 'relationFormat', 'type', 'layout', 'isHidden', 'done' ];
interface Detail {
relationKey: string;