Skip to content

Commit

Permalink
DataViews: make the mediaField not hidable (#56643)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Nov 30, 2023
1 parent f9e57a5 commit 19c0de9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-site/src/components/dataviews/view-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ function PageSizeMenu( { view, onChangeView } ) {

function FieldsVisibilityMenu( { view, onChangeView, fields } ) {
const hidableFields = fields.filter(
( field ) => field.enableHiding !== false
( field ) =>
field.enableHiding !== false && field.id !== view.layout.mediaField
);
if ( ! hidableFields?.length ) {
return null;
Expand Down

0 comments on commit 19c0de9

Please sign in to comment.