Fix an issue with group activity items when moving resources
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
08abaf56be
commit
9e2e071609
@ -172,7 +172,8 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
|
|||||||
if (this.subjectParams.resource_path) {
|
if (this.subjectParams.resource_path) {
|
||||||
const parentPath = this.parentPath(this.subjectParams.resource_path);
|
const parentPath = this.parentPath(this.subjectParams.resource_path);
|
||||||
const directory = parentPath.split("/");
|
const directory = parentPath.split("/");
|
||||||
return directory.pop();
|
const res = directory.pop();
|
||||||
|
res === "" ? null : res;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user