Skip to content

Commit d842090

Browse files
committed
Fix Voyager
1 parent 08318f2 commit d842090

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

includes/graphql_api_page_callback.inc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ function graphql_api_page_callback() {
9393
drupal_json_output($result);
9494
exit;
9595
} catch (Exception $exception) {
96-
dump($exception);
97-
die();
9896
$result = [
9997
'errors' => [
10098
['message' => $exception->getMessage(), 'backtrace' => debug_backtrace()]

js/legacy/voyager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Drupal.behaviors.graphql_api_voyager = {
44
return new Promise(function (resolve, reject) {
55
jQuery.ajax({
66
url: settings.basePath + 'graphql',
7-
method: 'post',
7+
type: 'POST',
88
contentType: "application/json; charset=utf-8",
99
data: JSON.stringify({
1010
query: introspectionQuery,

0 commit comments

Comments
 (0)