Skip to content
Snippets Groups Projects
Commit bf8048e9 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix issue with adding new label to a question

parent 21c996f1
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ const getEntitySelected = (state, props) =>
const getEntityVisible = (state, props) =>
caseInsensitiveSearch(getEntity(state, props).name, getSearchText(state));
const getLabelEntities = (state) => state.questions.entities.labels
const getLabelEntities = (state) => state.labels.entities.labels
export const makeGetItem = () => {
const getItem = createSelector(
......@@ -61,7 +61,7 @@ export const makeGetItem = () => {
icon: (visualizations.get(entity.display)||{}).iconName,
favorite: entity.favorite,
archived: entity.archived,
labels: entity.labels.map(labelId => labelEntities[labelId]),
labels: entity.labels.map(labelId => labelEntities[labelId]).filter(l => l),
selected,
visible
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment