bug in store - insertCodeMetadata import vanished
This commit is contained in:
parent
0ea3c71195
commit
6ee72d7301
|
@ -5,7 +5,6 @@ import {
|
||||||
sortBy,
|
sortBy,
|
||||||
map,
|
map,
|
||||||
last,
|
last,
|
||||||
keys,
|
|
||||||
concat,
|
concat,
|
||||||
find,
|
find,
|
||||||
isEmpty,
|
isEmpty,
|
||||||
|
@ -21,10 +20,7 @@ import {
|
||||||
import { writable } from "svelte/store"
|
import { writable } from "svelte/store"
|
||||||
import { defaultPagesObject } from "../userInterface/pagesParsing/defaultPagesObject"
|
import { defaultPagesObject } from "../userInterface/pagesParsing/defaultPagesObject"
|
||||||
import api from "./api"
|
import api from "./api"
|
||||||
import {
|
import { getExactComponent } from "../userInterface/pagesParsing/searchComponents"
|
||||||
isRootComponent,
|
|
||||||
getExactComponent,
|
|
||||||
} from "../userInterface/pagesParsing/searchComponents"
|
|
||||||
import { rename } from "../userInterface/pagesParsing/renameScreen"
|
import { rename } from "../userInterface/pagesParsing/renameScreen"
|
||||||
import {
|
import {
|
||||||
getNewScreen,
|
getNewScreen,
|
||||||
|
@ -33,12 +29,10 @@ import {
|
||||||
getBuiltin,
|
getBuiltin,
|
||||||
} from "../userInterface/pagesParsing/createProps"
|
} from "../userInterface/pagesParsing/createProps"
|
||||||
import { expandComponentDefinition } from "../userInterface/pagesParsing/types"
|
import { expandComponentDefinition } from "../userInterface/pagesParsing/types"
|
||||||
import {
|
import { loadLibs, loadLibUrls } from "./loadComponentLibraries"
|
||||||
loadLibs,
|
|
||||||
loadLibUrls
|
|
||||||
} from "./loadComponentLibraries"
|
|
||||||
import { buildCodeForScreens } from "./buildCodeForScreens"
|
import { buildCodeForScreens } from "./buildCodeForScreens"
|
||||||
import { generate_screen_css } from "./generate_css"
|
import { generate_screen_css } from "./generate_css"
|
||||||
|
import { insertCodeMetadata } from "./insertCodeMetadata"
|
||||||
|
|
||||||
let appname = ""
|
let appname = ""
|
||||||
|
|
||||||
|
@ -714,7 +708,6 @@ const setCurrentPage = store => pageName => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const getContainerComponent = components =>
|
const getContainerComponent = components =>
|
||||||
components.find(c => c.name === "@budibase/standard-components/container")
|
components.find(c => c.name === "@budibase/standard-components/container")
|
||||||
|
|
||||||
|
@ -727,8 +720,8 @@ const addChildComponent = store => (componentToAdd, presetName) => {
|
||||||
const component = componentToAdd.startsWith("##")
|
const component = componentToAdd.startsWith("##")
|
||||||
? getBuiltin(componentToAdd)
|
? getBuiltin(componentToAdd)
|
||||||
: state.components.find(({ name }) => name === componentToAdd)
|
: state.components.find(({ name }) => name === componentToAdd)
|
||||||
const presetProps = presetName ? component.presets[presetName] : {};
|
const presetProps = presetName ? component.presets[presetName] : {}
|
||||||
const newComponent = createProps(component, presetProps);
|
const newComponent = createProps(component, presetProps)
|
||||||
|
|
||||||
state.currentComponentInfo._children = state.currentComponentInfo._children.concat(
|
state.currentComponentInfo._children = state.currentComponentInfo._children.concat(
|
||||||
newComponent.props
|
newComponent.props
|
||||||
|
|
Loading…
Reference in New Issue