From c32622e4c1eb7c46d8bf49e16ce93118c73e780f Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Thu, 22 Aug 2024 16:19:19 +0200 Subject: [PATCH] fix list layout --- .../edit-site/src/components/post-fields/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/edit-site/src/components/post-fields/index.js b/packages/edit-site/src/components/post-fields/index.js index d4558cf863f130..12ff44283f62aa 100644 --- a/packages/edit-site/src/components/post-fields/index.js +++ b/packages/edit-site/src/components/post-fields/index.js @@ -41,6 +41,7 @@ import { useEntityRecords, store as coreStore } from '@wordpress/core-data'; */ import { LAYOUT_GRID, + LAYOUT_LIST, LAYOUT_TABLE, OPERATOR_IS_ANY, } from '../../utils/constants'; @@ -407,6 +408,20 @@ function usePostFields( viewType ) { ); } + if ( viewType === LAYOUT_LIST ) { + if ( ! url ) { + return null; + } + + return ( + + ); + } + if ( ! url ) { return (