From 93418470b3a44d16078c1960729758fb3cbb2337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Sat, 3 Dec 2022 20:17:30 +0100 Subject: [PATCH] Formatting --- templates/meet.html.ep | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/meet.html.ep b/templates/meet.html.ep index 485b5d8..d0cabe0 100644 --- a/templates/meet.html.ep +++ b/templates/meet.html.ep @@ -92,16 +92,18 @@ }, searchUsers(kind) { - if ( this.filter[kind].length < 2 ) { - this.search[kind] = []; - return true; - } - fetch(USERS_URL + '?search=' + this.filter[kind] ) - .then((res) => res.json()) - .then(res => { - this.search[kind] = res; - }) + if ( this.filter[kind].length < 2 ) { + this.search[kind] = []; + return true; + } + + fetch(USERS_URL + '?search=' + this.filter[kind] ) + .then((res) => res.json()) + .then(res => { + this.search[kind] = res; + }) + }, searchGroups() { -- GitLab