@@ -71,7 +71,9 @@ const storeModule = {
7171 content,
7272 breadcrumbs : Array . isArray ( breadcrumbs ) ? breadcrumbs : [ ] ,
7373 metatags,
74+ // eslint-disable-next-line camelcase
7475 localTasks : local_tasks ,
76+ // eslint-disable-next-line camelcase
7577 page_layout,
7678 settings
7779 }
@@ -88,7 +90,7 @@ const storeModule = {
8890 linkObject . hid = `${ firstKey } :${ linkObject [ firstKey ] } `
8991 return linkObject
9092 } )
91- state . page = page
93+ state . page = { ... page }
9294 } ,
9395 messages ( state , messages ) {
9496 // Make messages be flat array with message type.
@@ -197,6 +199,8 @@ const storeModule = {
197199}
198200
199201export default function ( context , inject ) {
202+ context . store . registerModule ( 'drupalCe' , storeModule )
203+
200204 const { $config, $axios } = context
201205 const options = JSON . parse ( '<%= JSON.stringify(options) %>' )
202206
@@ -210,8 +214,6 @@ export default function (context, inject) {
210214 return
211215 }
212216
213- context . store . registerModule ( 'drupalCe' , storeModule )
214-
215217 // Create a custom axios instance, optionally having custom options.
216218 const $axiosDrupal = $axios . create ( options . axios )
217219 options . baseURL = process . browser && options . axios . browserBaseURL ? options . axios . browserBaseURL : options . baseURL
0 commit comments