mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: Error when filtering site settings
Happened only when none of the logo settings had an image assigned.
This commit is contained in:
parent
aaf106fc2d
commit
14f9e55977
@ -15,7 +15,10 @@ export default Ember.Component.extend(UploadMixin, {
|
||||
|
||||
willDestroyElement() {
|
||||
this._super(...arguments);
|
||||
$("a.lightbox").magnificPopup("close");
|
||||
const elem = $("a.lightbox");
|
||||
if (elem && typeof elem.magnificPopup === "function") {
|
||||
$("a.lightbox").magnificPopup("close");
|
||||
}
|
||||
},
|
||||
|
||||
@computed("imageUrl")
|
||||
|
Loading…
Reference in New Issue
Block a user