Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.

Commit c20e79d

Browse files
committed
Do not set default query on Admin GraphiQL client
1 parent c744d8e commit c20e79d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Admin/MenuPages/GraphiQLMenuPage.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ protected function enqueueAssets(): void
112112
// Common settings to both clients
113113
$scriptSettings = array(
114114
'nonce' => \wp_create_nonce('wp_rest'),
115-
'defaultQuery' => $this->getDefaultQuery(),
116115
'response' => $this->getResponse(),
117116
);
118117

@@ -147,7 +146,10 @@ protected function enqueueAssets(): void
147146
'graphql-api-graphiql-client',
148147
'graphQLByPoPGraphiQLSettings',
149148
array_merge(
150-
['endpoint' => EndpointHelpers::getAdminGraphQLEndpoint()],
149+
[
150+
'defaultQuery' => $this->getDefaultQuery(),
151+
'endpoint' => EndpointHelpers::getAdminGraphQLEndpoint(),
152+
],
151153
$scriptSettings
152154
)
153155
);

0 commit comments

Comments
 (0)