Skip to content
Prev Previous commit
Next Next commit
fix patch in template editor
  • Loading branch information
mafredri committed Jul 12, 2023
commit 5904c6d1821e9aba0e733757e791ea4f01a2dff5
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export const templateVersionEditorMachine = createMachine(
}
await Promise.all([
// Only do a patch if the name is different
name !== version.name
name !== version.name || message !== version.message
? API.patchTemplateVersion(version.id, { name, message })
: Promise.resolve(),
isActiveVersion
Expand Down