mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
renamed private function
This commit is contained in:
@@ -123,7 +123,7 @@ export abstract class ComColDataService<T extends CacheableObject> extends DataS
|
|||||||
}
|
}
|
||||||
|
|
||||||
public refreshCache(dso: T) {
|
public refreshCache(dso: T) {
|
||||||
const parentCommunityUrl = this.parentCommunityUrl(dso as any);
|
const parentCommunityUrl = this.parentCommunityUrlLookup(dso as any);
|
||||||
if (!hasValue(parentCommunityUrl)) {
|
if (!hasValue(parentCommunityUrl)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ export abstract class ComColDataService<T extends CacheableObject> extends DataS
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private parentCommunityUrl(dso: Collection | Community) {
|
private parentCommunityUrlLookup(dso: Collection | Community) {
|
||||||
const parentCommunity = dso._links.parentCommunity;
|
const parentCommunity = dso._links.parentCommunity;
|
||||||
return isNotEmpty(parentCommunity) ? parentCommunity.href : null;
|
return isNotEmpty(parentCommunity) ? parentCommunity.href : null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user