From f6e7532934d14ca04168a8128479326e9c7f74ae Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Sat, 6 Jan 2024 20:21:19 +0100 Subject: [PATCH] =?UTF-8?q?Minify=20filter=E2=80=99s=20listen()=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- create-filter/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/create-filter/index.js b/create-filter/index.js index 245f4dd..31947b1 100644 --- a/create-filter/index.js +++ b/create-filter/index.js @@ -24,13 +24,15 @@ export function createFilter(client, Template, filter = {}, opts = {}) { } let stores = new Map() - filterStore.setKey('stores', stores) let isLoading = true - filterStore.setKey('isLoading', true) - filterStore.setKey('isEmpty', true) - let list = [] filterStore.setKey('list', list) + filterStore.set({ + isEmpty: true, + isLoading: true, + list, + stores + }) let channelPrefix = Template.plural + '/'