1
0
Fork 0
mirror of synced 2024-07-06 23:10:57 +12:00

Merge pull request #515 from Budibase/path-bug

fix path bug
This commit is contained in:
Martin McKeaveney 2020-07-27 16:20:50 +01:00 committed by GitHub
commit 47e3dd1431
3 changed files with 8 additions and 14 deletions

View file

@ -16,15 +16,12 @@
const joinPath = join("/")
const normalizedName = name =>
pipe(
name,
[
trimCharsStart("./"),
trimCharsStart("~/"),
trimCharsStart("../"),
trimChars(" "),
]
)
pipe(name, [
trimCharsStart("./"),
trimCharsStart("~/"),
trimCharsStart("../"),
trimChars(" "),
])
const changeScreen = screen => {
store.setCurrentScreen(screen.props._instanceName)

View file

@ -19,11 +19,7 @@
const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1)
const get_name = s => (!s ? "" : last(s.split("/")))
const get_capitalised_name = name =>
pipe(
name,
[get_name, capitalise]
)
const get_capitalised_name = name => pipe(name, [get_name, capitalise])
const isScreenslot = name => name === "##builtin/screenslot"
const selectComponent = component => {

View file

@ -27,6 +27,7 @@ exports.fetchAppComponentDefinitions = async function(ctx) {
const componentJson = require(join(
appDirectory,
componentLibrary,
ctx.isDev ? "" : "packages",
"components.json"
))