Fix bug where similar items weren't shown

This commit is contained in:
Andrew Miner
2017-07-19 19:40:16 -07:00
parent 8b0cd71bb5
commit cbf66bf5bb
@@ -254,9 +254,9 @@ module.exports = class ItemPageController extends PageController
@_recipeControllers.pop().remove()
_refreshSimilarItems: ->
group = @model.item.group
if group? and group isnt Item::DEFAULT_GROUP_NAME
@_similarItemsController.title = "Other #{group}"
groupName = @model.item.groupName
if groupName? and groupName isnt Item::DEFAULT_GROUP_NAME
@_similarItemsController.title = "Other #{groupName}"
@_similarItemsController.model = @model.findSimilarItems()
else
@_similarItemsController.model = null