From a77413e1ebe6baa4fb0638239bd6ec33538f2809 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Tue, 8 Oct 2019 14:20:51 +0200 Subject: [PATCH] Fix an error upon editing profile with a route set --- js/control/Profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/control/Profile.js b/js/control/Profile.js index dd32c3d..d234fcb 100644 --- a/js/control/Profile.js +++ b/js/control/Profile.js @@ -40,8 +40,8 @@ BR.Profile = L.Evented.extend({ empty = !this.editor.getValue(), clean = this.editor.isClean(); - this.profileName = profileName; if (profileName && BR.conf.profilesUrl && (empty || clean)) { + this.profileName = profileName; if (!(profileName in this.cache)) { profileUrl = BR.conf.profilesUrl + profileName + '.brf'; BR.Util.get(