From 0b8473f5b1447678fc072931c72ba327763459eb Mon Sep 17 00:00:00 2001 From: Muldec <34677746+Muldec@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:04:09 +0100 Subject: [PATCH] [defaultDataForPath] fix GRAPHQL_VALIDATION_FAILED on scene post (#278) --- plugins/defaultDataForPath/defaultDataForPath.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/defaultDataForPath/defaultDataForPath.js b/plugins/defaultDataForPath/defaultDataForPath.js index 85d8dd7d..4318c422 100644 --- a/plugins/defaultDataForPath/defaultDataForPath.js +++ b/plugins/defaultDataForPath/defaultDataForPath.js @@ -158,7 +158,9 @@ function getScenePath(ID) { "\ query findScene($id: ID) {\ findScene(id: $id) {\ - path\ + files {\ + path\ + }\ }\ }"; @@ -172,7 +174,7 @@ query findScene($id: ID) {\ return null; } - var path = findScene.path; + var path = findScene.files[0].path; return path; }