Fixed an issue where adding items from libraries didn't get all their properties
This commit is contained in:
@@ -30,7 +30,7 @@ Template.itemLibraryDialog.onCreated(function(){
|
||||
if (_.contains(categoryKeys, key)){
|
||||
handle = librarySubs.subscribe("standardLibraryItems", key);
|
||||
} else {
|
||||
handle = librarySubs.subscribe("libraryItems", key);
|
||||
handle = librarySubs.subscribe("fullLibraryItems", key);
|
||||
}
|
||||
this.autorun(() => {
|
||||
this.readyDict.set(key, handle.ready());
|
||||
|
||||
@@ -63,6 +63,12 @@ Meteor.publish("libraryItems", function(libraryId){
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish("fullLibraryItems", function(libraryId){
|
||||
return LibraryItems.find({
|
||||
library: libraryId
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish("libraryItem", function(itemId){
|
||||
let cursor = LibraryItems.find(itemId);
|
||||
let item = cursor.fetch()[0];
|
||||
|
||||
Reference in New Issue
Block a user