mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-7117: fix
This commit is contained in:
parent
e7e9c11427
commit
774519b204
1 changed files with 2 additions and 2 deletions
|
@ -197,10 +197,10 @@ const MenuDataviewFileValues = observer(class MenuDataviewFileValues extends Rea
|
|||
onMore (e: any, item: any) {
|
||||
const { getId, param, id, position } = this.props;
|
||||
const { data, classNameWrap } = param;
|
||||
const { onChange } = data;
|
||||
const { canEdit, onChange } = data;
|
||||
const itemEl = $(`#${getId()} #item-${item.id}`);
|
||||
const element = `#${getId()} #item-${item.id} .icon.more`;
|
||||
const isAllowed = S.Block.isAllowed(item.restrictions, [ I.RestrictionObject.Delete ]);
|
||||
const isAllowed = canEdit && S.Block.isAllowed(item.restrictions, [ I.RestrictionObject.Delete ]);
|
||||
|
||||
let value = Relation.getArrayValue(data.value);
|
||||
let options: any[] = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue