Skip to content

Commit

Permalink
[fix] Fixed "unsaved changes" alert shared VPN templates #824
Browse files Browse the repository at this point in the history
Fixes #824
  • Loading branch information
Dhanus3133 authored May 8, 2024
1 parent ca9e83c commit f0bdf03
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
message = 'You haven\'t saved your changes yet!',
initialValue,
name;
// django initial values returns organization as 'null' when it is empty
if (currentValues.organization === '') {
currentValues.organization = 'null';
}
if (gettext) { message = gettext(message); } // i18n if enabled
// compare initial with current values
for (name in django._owcInitialValues) {
Expand Down

0 comments on commit f0bdf03

Please sign in to comment.