client: fix lints in about.emojis.vue

This commit is contained in:
Norm 2022-09-26 15:02:22 -04:00
parent 356d226171
commit c608f0b4c2
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -33,14 +33,14 @@ import { emojiCategories, instance } from '@/instance';
let q: string = $ref(''); let q: string = $ref('');
let searchEmojis: null | Record<string, any>[] = $ref(null); let searchEmojis: null | Record<string, any>[] = $ref(null);
function search() { function search(): void {
if (q === '') { if (q === '') {
searchEmojis = null; searchEmojis = null;
} else { } else {
searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(this.q) || emoji.aliases.includes(this.q)); searchEmojis = instance.emojis.filter(emoji => emoji.name.includes(q) || emoji.aliases.includes(q));
} }
} }
watch(q, search); watch($$(q), search);
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>