From a6122d052773ff5590d89f0406e7032d353cab99 Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 18 Jul 2022 10:26:51 -0400 Subject: [PATCH] refactor --- app/soapbox/actions/importer/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/importer/index.ts b/app/soapbox/actions/importer/index.ts index be8b47304..20041180b 100644 --- a/app/soapbox/actions/importer/index.ts +++ b/app/soapbox/actions/importer/index.ts @@ -47,7 +47,11 @@ export function importFetchedAccounts(accounts: APIEntity[], args = { should_ref const processAccount = (account: APIEntity) => { if (!account.id) return; - normalAccounts.push({ should_refetch, ...account }); + if (should_refetch) { + account.should_refetch = true; + } + + normalAccounts.push(account); if (account.moved) { processAccount(account.moved);