Skip to content

Commit ec20b1b

Browse files
author
Rajat
committed
Code injection blocks can be completely reset
1 parent 56b3c65 commit ec20b1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/web/components/admin/settings/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ const Settings = (props: SettingsProps) => {
365365
) => {
366366
event.preventDefault();
367367

368-
if (!newSettings.codeInjectionHead && !newSettings.codeInjectionBody) {
368+
if (
369+
newSettings.codeInjectionHead === settings.codeInjectionHead &&
370+
newSettings.codeInjectionBody === settings.codeInjectionBody
371+
) {
369372
return;
370373
}
371374

0 commit comments

Comments
 (0)