Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
27227aec
Commit
27227aec
authored
Mar 25, 2021
by
Enrique Alcantara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace writeData with writeQuery Static Site Ed
parent
8829b92c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/assets/javascripts/static_site_editor/graphql/index.js
app/assets/javascripts/static_site_editor/graphql/index.js
+3
-1
No files found.
app/assets/javascripts/static_site_editor/graphql/index.js
View file @
27227aec
import
Vue
from
'
vue
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
appDataQuery
from
'
./queries/app_data.query.graphql
'
;
import
fileResolver
from
'
./resolvers/file
'
;
import
hasSubmittedChangesResolver
from
'
./resolvers/has_submitted_changes
'
;
import
submitContentChangesResolver
from
'
./resolvers/submit_content_changes
'
;
...
...
@@ -28,7 +29,8 @@ const createApolloProvider = (appData) => {
// eslint-disable-next-line @gitlab/require-i18n-strings
const
mounts
=
appData
.
mounts
.
map
((
mount
)
=>
({
__typename
:
'
Mount
'
,
...
mount
}));
defaultClient
.
cache
.
writeData
({
defaultClient
.
cache
.
writeQuery
({
query
:
appDataQuery
,
data
:
{
appData
:
{
__typename
:
'
AppData
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment