Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
05755f3
Add clearer labels and context to BlockPatternsSyncFilter (#54838)
richtabor Oct 2, 2023
089c0a3
Font Library: use snake_case instead of camelCase on fontFamilies end…
matiasbenedetto Oct 2, 2023
020570d
Fix output of Navigation block classnames in the editor. (#54992)
tellthemachines Oct 3, 2023
5c01d3d
Block Editor: Avoid double-wrapping selectors when transforming the s…
Mamaduka Oct 3, 2023
f112f14
Don't display the navigation section in template parts details when a…
Mamaduka Oct 3, 2023
d36bd6d
Scripts: Properly use CommonJS for default Playwright config (#54988)
swissspidy Oct 3, 2023
283f4e7
Add template replace flow to template inspector (#54609)
scruffian Oct 3, 2023
fba6504
List View: Fix performance issue when selecting all blocks (#54900)
andrewserong Oct 4, 2023
2998442
Fix left and right aligmnent in children of Post Template (#54997)
tellthemachines Oct 4, 2023
e2eb0ab
Site Editor: Avoid stale navigation block values when parsing entity …
Mamaduka Oct 4, 2023
d11de67
Removed unwanted space from the string (#54654)
mujuonly Sep 23, 2023
3c227eb
Fix Deleted Navigation Menu warning string (#55033)
getdave Oct 4, 2023
aca3f6d
[Inserter]: Fix reset of registered media categories (#55012)
ntsekouras Oct 4, 2023
202a297
Try fixing the flaky 'Toolbar roving tabindex' e2e test (#54785)
Mamaduka Sep 26, 2023
fcb06c7
Fallback to Twitter provider when embedding X URLs (#54876)
fluiddot Sep 27, 2023
e790617
Based on the efforts in https://github.com/WordPress/gutenberg/pull/5…
ramonjd Sep 22, 2023
e93d348
Update pattern import menu item (#54782)
jameskoster Sep 26, 2023
baf1425
Image Block: Fix browser console error when clicking "Expand on Click…
t-hamano Sep 30, 2023
841537f
Patterns: Remove category description in inserter panel? (#54894)
aaronrobertshaw Oct 2, 2023
dac8a21
Media & Text: Fix React warning (#55038)
Mamaduka Oct 4, 2023
0c89d7e
Block Style: Display default style labels correctly in the block side…
t-hamano Oct 4, 2023
d0630d0
Site Editor: Do not display 'trashed' navigation menus in Sidebar (#5…
Mamaduka Oct 5, 2023
ae40d77
Image: Fix Lightbox display bug in Classic Themes. (#54837)
michalczaplinski Oct 5, 2023
11f6a6d
Latest Posts: add screen reader title text to Read more links and use…
ramonjd Oct 5, 2023
89f5e33
Fix Image block lightbox missing alt attribute and improve accessibil…
afercia Oct 6, 2023
9398b4a
Patterns: Add category selector to pattern creation modal (#55024)
glendaviesnz Oct 9, 2023
2e4bba1
Iframe: Fix positioning when dragging over an iframe (#55150)
andrewserong Oct 9, 2023
95e1f62
Site Editor: Fix template part area listing when a template has no ed…
Mamaduka Oct 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Site Editor: Fix template part area listing when a template has no ed…
…its (#55115)

* Alternative: Fix template part area listing when a template has no edits
* Fix typos
  • Loading branch information
Mamaduka authored and mikachan committed Oct 9, 2023
commit 95e1f627841f59117b8ef15496adbac1bc10b92b
19 changes: 9 additions & 10 deletions packages/edit-site/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,22 +292,21 @@ export function isSaveViewOpened( state ) {
* @return {Array} Template parts and their blocks in an array.
*/
export const getCurrentTemplateTemplateParts = createRegistrySelector(
( select ) => ( state ) => {
const templateType = getEditedPostType( state );
const templateId = getEditedPostId( state );
const template = select( coreDataStore ).getEditedEntityRecord(
'postType',
templateType,
templateId
);

( select ) => () => {
const templateParts = select( coreDataStore ).getEntityRecords(
'postType',
TEMPLATE_PART_POST_TYPE,
{ per_page: -1 }
);

return getFilteredTemplatePartBlocks( template.blocks, templateParts );
const clientIds =
select( blockEditorStore ).__experimentalGetGlobalBlocksByName(
'core/template-part'
);
const blocks =
select( blockEditorStore ).getBlocksByClientId( clientIds );

return getFilteredTemplatePartBlocks( blocks, templateParts );
}
);

Expand Down