change appname to name in builderStore

This commit is contained in:
kevmodrome 2020-06-29 17:01:10 +02:00
parent 2f255c70a4
commit 2da62df873
2 changed files with 5 additions and 3 deletions

View File

@ -29,7 +29,8 @@ import {
export const getStore = () => { export const getStore = () => {
const initial = { const initial = {
apps: [], apps: [],
appname: "", name: "",
description: "",
pages: DEFAULT_PAGES_OBJECT, pages: DEFAULT_PAGES_OBJECT,
mainUi: {}, mainUi: {},
unauthenticatedUi: {}, unauthenticatedUi: {},
@ -101,7 +102,8 @@ const setPackage = (store, initial) => async pkg => {
initial.libraries = pkg.application.componentLibraries initial.libraries = pkg.application.componentLibraries
initial.components = await fetchComponentLibDefinitions(pkg.application._id) initial.components = await fetchComponentLibDefinitions(pkg.application._id)
initial.appname = pkg.application.name initial.name = pkg.application.name
initial.description = pkg.application.description
initial.appId = pkg.application._id initial.appId = pkg.application._id
initial.pages = pkg.pages initial.pages = pkg.pages
initial.hasAppPackage = true initial.hasAppPackage = true

View File

@ -11,7 +11,7 @@
} }
$: currentAppInfo = { $: currentAppInfo = {
appname: $store.appname, name: $store.name,
} }
async function fetchUsers() { async function fetchUsers() {