Skip to content

Commit

Permalink
PROMOTE - MWPW-136766 (#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
auniverseaway authored Nov 16, 2023
2 parents 852002b + bcda87a commit a943a1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/blocks/bulk-publish/bulk-publish-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit a943a1a

Please sign in to comment.