Skip to content

Commit 5308232

Browse files
committed
fix: duplication for label
1 parent 722a843 commit 5308232

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/Panels/PropertiesPanel/PropertiesPanel.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ function showPropertiesPanel() {
3333
if (toRaw(propertiesPanelObj.value) == simulationArea.lastSelected) return
3434
prevPropertyObjSet(simulationArea.lastSelected)
3535
propertiesPanelObj.value = simulationArea.lastSelected
36+
if(simulationArea.lastSelected.newElement) {
37+
simulationArea.lastSelected.label = ""
38+
}
3639
// there are 3 types of panel body for Properties Panel
3740
// depending upon which is last selected
3841
// 1. Properties Panel in Layout mode

src/simulator/src/engine.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,6 @@ export function update(scope = globalScope, updateEverything = false) {
544544
simulationArea.lastSelected.objectType !== 'Wire'
545545
) {
546546
// ideas: why show properties of project in Nodes but not wires?
547-
if (simulationArea.lastSelected.newElement) {
548-
simulationArea.lastSelected.label = '';
549-
}
550547
showProperties(simulationArea.lastSelected)
551548
} else {
552549
// hideProperties();

0 commit comments

Comments
 (0)