From 44197d9f2009b340e3aa3721d9185ce5bacfe146 Mon Sep 17 00:00:00 2001 From: Chris Millar Date: Thu, 16 Nov 2023 16:27:49 -0700 Subject: [PATCH] chore: remove bulk user caching --- libs/blocks/bulk-publish/bulk-publish-utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/blocks/bulk-publish/bulk-publish-utils.js b/libs/blocks/bulk-publish/bulk-publish-utils.js index 8e8e40c162..0bed4c2426 100644 --- a/libs/blocks/bulk-publish/bulk-publish-utils.js +++ b/libs/blocks/bulk-publish/bulk-publish-utils.js @@ -69,11 +69,9 @@ export const signOut = (e) => { }; export const getAuthorizedUsers = async () => { - let authorizedUsers = getLocalStorage(BULK_AUTHORIZED_USERS); - if (authorizedUsers) return authorizedUsers; const resp = await fetch(BULK_CONFIG_FILE_PATH); const json = await resp.json(); - authorizedUsers = json.users.data.map((user) => user.user); + const authorizedUsers = json.users.data.map((user) => user.user); setLocalStorage(BULK_AUTHORIZED_USERS, authorizedUsers); return authorizedUsers; };