Skip to content

Commit c17e284

Browse files
committed
refactor(plugin-view): drop the unobservable readonly check on definitionReadonly
readonly already removes both Manage views entries the flag changes (Delete and the configuration entry), so the check could not fail a test (ablated: the suites stayed green). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
1 parent 3f5c947 commit c17e284

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎ui/packages/plugin-view/src/ManageViewsDialog.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ const SortableRow: React.FC<RowProps> = ({
173173
const isReadonly = !!view.readonly;
174174
// A row whose definition is read-only but whose row state is not
175175
// (`ViewTabItem.definitionReadonly`): no Delete, and its configuration is
176-
// offered to look at. `readonly` wins.
177-
const definitionReadonly = !isReadonly && !!view.definitionReadonly;
176+
// offered to look at. `readonly` wins without a check here: it already
177+
// drops both entries this flag changes.
178+
const definitionReadonly = !!view.definitionReadonly;
178179

179180
/**
180181
* The overflow menu's entries, each resolved ONCE to the handler it will

0 commit comments

Comments
 (0)