Browse Source

fix: add missing scriptJs and scriptCss to single page resolver (#5689)

Rodrigo Ribeiro Gomes 2 năm trước cách đây
mục cha
commit
db0255cb7c
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      server/graph/resolvers/page.js

+ 3 - 1
server/graph/resolvers/page.js

@@ -159,7 +159,9 @@ module.exports = {
           return {
             ...page,
             locale: page.localeCode,
-            editor: page.editorKey
+            editor: page.editorKey,
+            scriptJs: page.extra.js,
+            scriptCss: page.extra.css
           }
         } else {
           throw new WIKI.Error.PageViewForbidden()