mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
fix: fix confirmation modal check on deploy
This commit is contained in:
+5
-3
@@ -32,11 +32,12 @@
|
||||
// console.log('going to', newNavigationState.to.url)
|
||||
goingTo = newNavigationState.to.url
|
||||
|
||||
if (newNavigationState.type != 'popstate') {
|
||||
await tick() // make sure saved value is updated when clicking on save draft or deploy
|
||||
}
|
||||
|
||||
async function openModal() {
|
||||
newNavigationState.cancel()
|
||||
if (newNavigationState.type != 'popstate') {
|
||||
await tick() // make sure saved value is updated when clicking on save draft or deploy
|
||||
}
|
||||
open = true
|
||||
}
|
||||
if (savedValue && modifiedValue) {
|
||||
@@ -45,6 +46,7 @@
|
||||
path: undefined
|
||||
})
|
||||
const current = cleanValueProperties({ ...(modifiedValue ?? {}), path: undefined })
|
||||
|
||||
if (
|
||||
orderedJsonStringify(replaceFalseWithUndefined(draftOrDeployed)) ===
|
||||
orderedJsonStringify(replaceFalseWithUndefined(current))
|
||||
|
||||
Reference in New Issue
Block a user