remove unnecessary ensureloaded because ensureloaded is already called within getNeed
@@ -148,8 +148,7 @@ export function successfulCreate(event) {
//load the data into the local rdf store and publish NeedCreatedEvent when done
var needURI = event.getReceiverNeed();
- won.ensureLoaded(needURI)
- .then(() => {
+
won.getNeed(needURI)
.then((need) => {
console.log("Dispatching action " + won.EVENT.NEED_CREATED);
@@ -159,7 +158,6 @@ export function successfulCreate(event) {
need: need,
}));
});
- });
}
}
