mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 08:02:38 +00:00
fix: look up a script's head at its row path, and show flow and app version ids bare
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
7ac3aed2ef
commit
a3cea5184f
@@ -559,10 +559,13 @@
|
||||
|
||||
try {
|
||||
if (initialPath && initialPath != '') {
|
||||
// The row's path, not `initialPath`: that is the typed path, where a
|
||||
// staged rename has nothing deployed, and a missing head would deploy
|
||||
// on a base that already has a child.
|
||||
actual_parent_hash = (
|
||||
await ScriptService.getScriptLatestVersion({
|
||||
workspace: opWorkspace!,
|
||||
path: initialPath
|
||||
path: userDraftPath || initialPath
|
||||
})
|
||||
)?.script_hash
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
// Scripts are versioned by hash, the other kinds by a numeric version id;
|
||||
// the diff picker renders them the same way.
|
||||
function formatVersion(v: string): string {
|
||||
return itemKind === 'script' ? v.slice(0, 8) : `v${v}`
|
||||
return itemKind === 'script' ? v.slice(0, 8) : v
|
||||
}
|
||||
|
||||
async function loadLatestDeploy() {
|
||||
|
||||
Reference in New Issue
Block a user