From f59ca4f6229a464c0becb70f6150163376f4ef49 Mon Sep 17 00:00:00 2001 From: AntonioIgorCarvalho Date: Fri, 12 Nov 2021 11:56:16 -0300 Subject: [PATCH] NewTags array now in the right place fga-eps-mds/2021.1-Oraculo#234 --- src/Pages/EditRecord/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/EditRecord/index.js b/src/Pages/EditRecord/index.js index e5a4f86..7e1aff7 100644 --- a/src/Pages/EditRecord/index.js +++ b/src/Pages/EditRecord/index.js @@ -65,8 +65,8 @@ const EditRecord = () => { const originalRecord = await getProcessByID(id, toast); const getTagsApi = await getRecordTagColors(id); + const newTags = {}; if (getTagsApi[0] === 200) { - const newTags = {}; console.log(getTagsApi); getTagsApi[1].forEach((t) => { newTags[t.id] = { color: t.color, checked: true };