mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 08:03:50 +00:00
clean dirty changes
This commit is contained in:
@@ -342,7 +342,7 @@
|
||||
}
|
||||
|
||||
const yOffset = insertable ? 100 : 0
|
||||
return dag.descendants().map((des) => ({
|
||||
const newNodes = dag.descendants().map((des) => ({
|
||||
id: des.data.id,
|
||||
position: {
|
||||
x: des.x
|
||||
@@ -358,6 +358,9 @@
|
||||
y: (des.y || 0) + yOffset + (nodeSpacingMap[des.data.id] ?? 0) / 2
|
||||
}
|
||||
}))
|
||||
|
||||
lastNodes = [nodes, newNodes]
|
||||
return newNodes
|
||||
}
|
||||
|
||||
let eventHandler = {
|
||||
|
||||
@@ -41,13 +41,6 @@
|
||||
const locked = $derived(data.locked ?? false)
|
||||
const textForDisplay = $derived(data.text ?? '')
|
||||
|
||||
// Sync textContent with data.text when not in edit mode
|
||||
$effect(() => {
|
||||
if (!editMode) {
|
||||
textContent = data.text ?? ''
|
||||
}
|
||||
})
|
||||
|
||||
function handleTextSave() {
|
||||
// Only update when done editing
|
||||
if (isEditModeAvailable && noteEditorContext?.noteEditor) {
|
||||
|
||||
Reference in New Issue
Block a user