Skip to content

Commit

Permalink
make managed state override itemIsEditable
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Sep 20, 2023
1 parent c895a57 commit 4679bb1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -460,7 +460,8 @@ function TableListViewTableComp<T extends UserContentCommonSchema>({
return item.references.find(({ id: refId }) => refId === _id) as SavedObjectsReference;
});

const isEditable = !item.managed && (itemIsEditable?.(item) ?? true);
// If the So is `managed` it is never editable.
const isEditable = item.managed ? false : itemIsEditable?.(item) ?? true;

const close = openContentEditor({
item: {
Expand Down

0 comments on commit 4679bb1

Please sign in to comment.