feat: hide sidebar option

This commit is contained in:
NGPixel
2020-04-12 21:19:22 -04:00
committed by Nicolas Giard
parent a33691d642
commit 514d31a46d
5 changed files with 24 additions and 3 deletions

View File

@@ -199,7 +199,13 @@ export default {
query: renderersQuery,
fetchPolicy: 'network-only',
update: (data) => {
let renderers = _.cloneDeep(data.rendering.renderers).map(str => ({...str, config: str.config.map(cfg => ({...cfg, value: JSON.parse(cfg.value)}))}))
let renderers = _.cloneDeep(data.rendering.renderers).map(str => ({
...str,
config: _.sortBy(str.config.map(cfg => ({
...cfg,
value: JSON.parse(cfg.value)
})), [t => t.value.order])
}))
// Build tree
const graph = new DepGraph({ circular: true })
const rawCores = _.filter(renderers, ['dependsOn', null]).map(core => {