mirror of
https://github.com/coder/coder.git
synced 2026-09-21 20:51:01 +08:00
fix(site): warn when user leaves template editor with un-built changes (#12548)
This commit is contained in:
@@ -182,7 +182,7 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
|
||||
}
|
||||
}, [buildLogs]);
|
||||
|
||||
useLeaveSiteWarning(canPublish);
|
||||
useLeaveSiteWarning(dirty);
|
||||
|
||||
const canBuild = !isBuilding;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user