feat(my-joy-beta): only transform tags to array once

This commit is contained in:
Sérgio Ramos 2017-09-27 15:25:41 +01:00 committed by Sérgio Ramos
parent 0c4f9e5080
commit 7a2a61a9db
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const Tags = ({ tags = [], loading, error }) => {
<StatusLoader />
);
const _tags = !_loading && TagForms(Object.values(tags));
const _tags = !_loading && TagForms(tags);
const _error = !(error && !_loading) ? null : (
<Message
@ -95,7 +95,7 @@ export default compose(
};
}, {});
return { tags, loading, error };
return { tags: Object.values(tags), loading, error };
}
}),
graphql(PutTags, {