diff --git a/Taskfile.yml b/Taskfile.yml index e335acc..e8e2240 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,6 +4,7 @@ version: "3" vars: GREETING: Hello, World! + PARENT_BRANCH: main tasks: test: @@ -31,7 +32,9 @@ tasks: deps: [check] cmds: - git is-clean - - git checkout main + # did we had tests? + - git diff-ls {{.PARENT_BRANCH}} | grep test + - git checkout {{.PARENT_BRANCH}} - git weld - release: diff --git a/src/lib/components/ShipEdit/Structure/Armor.svelte b/src/lib/components/ShipEdit/Structure/Armor.svelte index c63e79c..31744f3 100644 --- a/src/lib/components/ShipEdit/Structure/Armor.svelte +++ b/src/lib/components/ShipEdit/Structure/Armor.svelte @@ -27,7 +27,7 @@ const api = getContext("api"); - $: api.dispatch.setNbrArmorLayers(nbr_layers); + $: api?.dispatch.setNbrArmorLayers(nbr_layers);