1
0
Fork 0
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:
Andrew Simachev 2025-06-05 15:49:55 +02:00
parent e7e9c11427
commit 774519b204
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -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[] = [