mirror of https://github.com/coder/coder.git
fix(site): warn when user leaves template editor with un-built changes (#12548)
This commit is contained in:
parent
90d00190ea
commit
7b081c873e
|
@ -182,7 +182,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
|
|||
}
|
||||
}, [buildLogs]);
|
||||
|
||||
useLeaveSiteWarning(canPublish);
|
||||
useLeaveSiteWarning(dirty);
|
||||
|
||||
const canBuild = !isBuilding;
|
||||
|
||||
|
|
Loading…
Reference in New Issue