Skip to content

Commit

Permalink
Don't show empty headings on the GQL schema edit page
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Feb 12, 2024
1 parent d86bd90 commit 783c601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where read/write splitting was always getting disabled for GraphQL POST requests. ([#14324](https://github.com/craftcms/cms/issues/14324))
- Fixed a bug where GraphQL schema edit pages could include empty category headings.

## 4.7.2.1 - 2024-02-08

Expand Down
4 changes: 2 additions & 2 deletions src/templates/graphql/schemas/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

{% set schemaComponents = craft.app.gql.getAllSchemaComponents %}

{% for category, catPermissions in schemaComponents.queries %}
{% for category, catPermissions in schemaComponents.queries|filter %}
<div class="user-permissions">
<h3>{{ category }}</h3>
<div class="select-all"></div>
Expand All @@ -97,7 +97,7 @@
<hr/>
<h2>{{ 'Choose the available mutations for this schema:'|t('app') }}</h2>

{% for category, catPermissions in schemaComponents.mutations %}
{% for category, catPermissions in schemaComponents.mutations|filter %}
<div class="user-permissions">
<h3>{{ category }}</h3>
<div class="select-all"></div>
Expand Down

0 comments on commit 783c601

Please sign in to comment.