Fix editor associate-item response to check for content type

This commit is contained in:
Mo Bitar
2017-08-22 17:09:37 -05:00
parent 1b79ca2ae3
commit bbc55d5444

View File

@@ -109,8 +109,10 @@ angular.module('app.frontend')
}
else if(action === "associate-item") {
var tag = modelManager.findItem(data.item.uuid);
this.addTag(tag);
if(data.item.content_type == "Tag") {
var tag = modelManager.findItem(data.item.uuid);
this.addTag(tag);
}
}
else if(action === "deassociate-item") {