Skip to content

Commit

Permalink
Merge pull request #114 from fga-eps-mds/234-corrigir-erro-editar-reg…
Browse files Browse the repository at this point in the history
…istro

NewTags array place changed fga-eps-mds/2021.1-Oraculo#234
  • Loading branch information
Maxlobo authored Nov 12, 2021
2 parents ffe247f + f59ca4f commit bddb9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pages/EditRecord/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit bddb9db

Please sign in to comment.