Skip to content

Commit

Permalink
🐛 Fix linter warnings
Browse files Browse the repository at this point in the history
CosmoMyzrailGorynych committed Aug 9, 2020
1 parent a6b2109 commit d2bd8ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/riotTags/rooms/room-type-picker.tag
Original file line number Diff line number Diff line change
@@ -39,10 +39,6 @@ room-type-picker.room-editor-TypeSwatches.tabbed.tall

this.getTypeTextureRevision = type => glob.texturemap[type.texture].g.lastmod;

window.signals.on('typesChanged', typesChanged);
this.on('unmount', () => {
window.signals.off('typesChanged', typesChanged);
});
const fuseOptions = {
shouldSort: true,
tokenize: true,
@@ -83,6 +79,11 @@ room-type-picker.room-editor-TypeSwatches.tabbed.tall
this.update();
};

window.signals.on('typesChanged', typesChanged);
this.on('unmount', () => {
window.signals.off('typesChanged', typesChanged);
});

this.on('mount', () => {
this.mounted = true;
});

0 comments on commit d2bd8ba

Please sign in to comment.