Skip to content

Commit

Permalink
[defaultDataForPath] fix GRAPHQL_VALIDATION_FAILED on scene post (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muldec authored Mar 14, 2024
1 parent 4287579 commit 0b8473f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/defaultDataForPath/defaultDataForPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ function getScenePath(ID) {
"\
query findScene($id: ID) {\
findScene(id: $id) {\
path\
files {\
path\
}\
}\
}";

Expand All @@ -172,7 +174,7 @@ query findScene($id: ID) {\
return null;
}

var path = findScene.path;
var path = findScene.files[0].path;
return path;
}

Expand Down

0 comments on commit 0b8473f

Please sign in to comment.