diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index ec28b21d8e..261b840577 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -160,5 +160,4 @@ Cypress.Commands.add("createScreen", (screenName, route) => { cy.get("input").eq(1).type(route) cy.get(".spectrum-Button--cta").click() }) - }) diff --git a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte index 31842b984e..96515478ab 100644 --- a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte +++ b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte @@ -84,7 +84,7 @@ if (!event.detail.startsWith("/")) { route = "/" + event.detail } - route = route.replaceAll(' ', '_') + route = route.replaceAll(" ", "_") } diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte index 900beca5ce..7629afa40d 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte @@ -22,8 +22,7 @@ let bindingDrawer let anchor let valid - let dispatch = createEventDispatcher(); - + let dispatch = createEventDispatcher() $: bindableProperties = getBindableProperties( $currentAsset, @@ -55,9 +54,9 @@ } if (typeof innerVal === "string") { - dispatch('change', replaceBindings(innerVal)) + dispatch("change", replaceBindings(innerVal)) } else { - dispatch('change', innerVal) + dispatch("change", innerVal) } } diff --git a/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte b/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte index b25964c5e5..db8cb1fd61 100644 --- a/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/ScreenSettingsSection.svelte @@ -11,7 +11,7 @@ export let componentInstance function setAssetProps(name, value, parser) { - if (parser && typeof parser === 'function') { + if (parser && typeof parser === "function") { value = parser(value) } @@ -32,7 +32,12 @@ const screenSettings = [ // { key: "description", label: "Description", control: Input }, - { key: "routing.route", label: "Route", control: Input, parser: (val) => val.replaceAll(' ', '_') }, + { + key: "routing.route", + label: "Route", + control: Input, + parser: val => val.replaceAll(" ", "_"), + }, { key: "routing.roleId", label: "Access", control: RoleSelect }, { key: "layoutId", label: "Layout", control: LayoutSelect }, ]