Skip to content

Commit

Permalink
feat: fix blueprint node id
Browse files Browse the repository at this point in the history
  • Loading branch information
FacerAin committed Aug 10, 2023
1 parent 0d14e4a commit e7e417f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/node/NodePlane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ watch(blueprintNodes, (newValue, oldValue) => {
if (newValue) {
let nodeData = newValue;
addNodes(nodeData);
id += getNodes.value.length;
}
});
Expand All @@ -92,7 +93,6 @@ function onDrop(event) {
position,
label: `${type} node`,
};
addNodes([newNode]);
// align node position after drop, so it's centered to the mouse
Expand Down Expand Up @@ -134,6 +134,7 @@ const exportAndOpenModal = () => {
});
exportData.value = JSON.stringify(exportDataArr);
showModal.value = true;
if (btnData.value === 'create') {
axios
.post('/terraform/usertf', exportData.value)
Expand Down

0 comments on commit e7e417f

Please sign in to comment.