Small UI tweaks for studio, improve linting and typing

This commit is contained in:
Pieter Vander Vennet 2024-07-26 18:13:26 +02:00
parent b03ff4f148
commit 15aa141e15
5 changed files with 14 additions and 14 deletions

View file

@ -17,8 +17,6 @@
import QuestionPreview from "./QuestionPreview.svelte"
import ShowConversionMessages from "./ShowConversionMessages.svelte"
import RawEditor from "./RawEditor.svelte"
import NextButton from "../Base/NextButton.svelte"
import BackButton from "../Base/BackButton.svelte"
import DeleteButton from "./DeleteButton.svelte"
import StudioHashSetter from "./StudioHashSetter"
@ -84,7 +82,7 @@
</script>
<div class="flex h-screen flex-col">
<div class="my-2 flex w-full justify-between">
<div class="my-2 flex flex-wrap w-full justify-between">
<slot />
{#if $title === undefined}
<h3>Creating a new layer</h3>

View file

@ -292,7 +292,7 @@ class ContextRewritingStep<T> extends Conversion<LayerConfigJson, T> {
return undefined
}
const newPath = [...path]
const idToSearch = newTagRenderings[newPath[1]].id
const idToSearch = newTagRenderings[newPath[1]]?.id ?? ""
const oldIndex = originalIds.indexOf(idToSearch)
if (oldIndex < 0) {
console.warn("Original ID was not found: ", idToSearch)

View file

@ -367,7 +367,7 @@
{:else if state === "editing_layer"}
<EditLayer state={editLayerState} {backToStudio}>
<BackButton clss="small p-1" imageClass="w-8 h-8" on:click={() => backToStudio()}>
MapComplete Studio
Studio
</BackButton>
</EditLayer>
{:else if state === "editing_theme"}