PR feedback

This commit is contained in:
Dean 2024-04-03 09:11:56 +01:00
parent f4fc8e5e97
commit aa7fe8f1b5
2 changed files with 2 additions and 6 deletions

View File

@ -125,7 +125,7 @@
// Catch any app errors
loading = false
error = event.error || "An unknown error occurred"
} else if (type === "select-component" && "id" in data) {
} else if (type === "select-component" && data.id) {
componentStore.select(data.id)
componentTreeNodesStore.makeNodeVisible(data.id)
} else if (type === "hover-component") {

View File

@ -5,14 +5,10 @@
$: color = $builderStore.editMode
? "var(--spectrum-global-color-static-green-500)"
: "var(--spectrum-global-color-static-blue-600)"
$: isScreen = $builderStore.selectedComponentId?.startsWith(
$builderStore.screen._id
)
</script>
<IndicatorSet
componentId={!isScreen ? $builderStore.selectedComponentId : null}
componentId={$builderStore.selectedComponentId}
{color}
zIndex={900}
allowResizeAnchors