1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-21 23:44:30 +00:00

Fix an issue with group activity items when moving resources

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-09-07 17:37:41 +02:00
parent 08abaf56be
commit 9e2e071609
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -172,7 +172,8 @@ export default class ResourceActivityItem extends mixins(ActivityMixin) {
if (this.subjectParams.resource_path) {
const parentPath = this.parentPath(this.subjectParams.resource_path);
const directory = parentPath.split("/");
return directory.pop();
const res = directory.pop();
res === "" ? null : res;
}
return null;
}