Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private editOrReloadObject(paneId: Pane, object: Ro.DomainObjectRepresentation, inlineDetails: boolean) {
const parms = Ro.inlinePropertyDetails(inlineDetails);
return this.repLoader.retrieveFromLink(object.selfLink(), parms)
.then(obj => {
this.currentObjects[paneId] = obj;
const oid = obj.getOid();
this.dirtyList.clearDirty(oid);
this.cacheRecentlyViewed(obj);
return Promise.resolve(obj);
});
}