From b4e0504f9709c90ff0a27581ae972fcdec69c83f Mon Sep 17 00:00:00 2001 From: f Date: Sat, 18 Sep 2021 13:31:15 -0300 Subject: [PATCH] =?UTF-8?q?Si=20el=20par=C3=A1metro=20no=20existe=20no=20s?= =?UTF-8?q?e=20puede=20trimear?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _packs/controllers/search_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_packs/controllers/search_controller.js b/_packs/controllers/search_controller.js index b1f8bea..955425b 100644 --- a/_packs/controllers/search_controller.js +++ b/_packs/controllers/search_controller.js @@ -16,7 +16,7 @@ export default class extends Controller { } connect () { - const q = new URLSearchParams(window.location.search).get('q').trim() + const q = new URLSearchParams(window.location.search).get('q')?.trim() if (q) { this.qTarget.value = q