diff --git a/www/src/components/SideDrawer/Form/Fields/Code.tsx b/www/src/components/SideDrawer/Form/Fields/Code.tsx
index 97a6d168..c9f9bb43 100644
--- a/www/src/components/SideDrawer/Form/Fields/Code.tsx
+++ b/www/src/components/SideDrawer/Form/Fields/Code.tsx
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useRef } from "react";
import { Controller } from "react-hook-form";
import { IFieldProps } from "../utils";
-
+import { Prompt } from "react-router-dom";
import AceEditor from "react-ace";
import "ace-builds/src-noconflict/mode-javascript";
import "ace-builds/src-noconflict/theme-github";
@@ -92,13 +92,21 @@ function ControlledCode({ onChange, onBlur, value }: IControlledCodeProps) {
{!autoSave && value !== localValue && (
-
+ <>
+
+ `You have some unsaved code changes, Are you sure you want to discard and continue?`
+ }
+ />
+
+ >
)}
>
);