Fix an error upon editing profile with a route set

This commit is contained in:
Phyks (Lucas Verney) 2019-10-08 14:20:51 +02:00
parent 43ac9db50c
commit a77413e1eb

View file

@ -40,8 +40,8 @@ BR.Profile = L.Evented.extend({
empty = !this.editor.getValue(), empty = !this.editor.getValue(),
clean = this.editor.isClean(); clean = this.editor.isClean();
this.profileName = profileName;
if (profileName && BR.conf.profilesUrl && (empty || clean)) { if (profileName && BR.conf.profilesUrl && (empty || clean)) {
this.profileName = profileName;
if (!(profileName in this.cache)) { if (!(profileName in this.cache)) {
profileUrl = BR.conf.profilesUrl + profileName + '.brf'; profileUrl = BR.conf.profilesUrl + profileName + '.brf';
BR.Util.get( BR.Util.get(