|
@@ -23,7 +23,7 @@ export const StaticsStore = defineStore({
|
|
|
console.log('statics store loadStatics');
|
|
|
return new Promise((resolve, reject) => {
|
|
|
const ast = gql`{
|
|
|
- allstatics {
|
|
|
+ promotedstatics {
|
|
|
...StaticsFields
|
|
|
}
|
|
|
}
|
|
@@ -31,11 +31,11 @@ export const StaticsStore = defineStore({
|
|
|
`
|
|
|
console.log('ast', ast);
|
|
|
GQL.post('', { query: print(ast) })
|
|
|
- .then(({ data : { data : { allstatics } } }) => {
|
|
|
- console.log('loadstatics loaded', allstatics)
|
|
|
- this.statics = allstatics
|
|
|
+ .then(({ data : { data : { promotedstatics } } }) => {
|
|
|
+ console.log('loadstatics loaded', promotedstatics)
|
|
|
+ this.statics = promotedstatics
|
|
|
|
|
|
- allstatics.forEach((s) => {
|
|
|
+ promotedstatics.forEach((s) => {
|
|
|
// console.log("s", s);
|
|
|
this.statics_byid[s.id] = s
|
|
|
});
|