landscape: fix groupify redirect

This commit is contained in:
Liam Fitzgerald 2020-11-06 10:45:26 +10:00
parent f2d38ffb1a
commit 181401c153
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -47,7 +47,8 @@ export function GroupifyForm(props: GroupifyFormProps) {
);
}
const mod = association.metadata.module || association['app-name'];
history.push(`/~landscape${values.group}/resource/${mod}${association['app-path']}`);
const newGroup = values.group || association['group-path'];
history.push(`/~landscape${newGroup}/resource/${mod}${association['app-path']}`);
actions.setStatus({ success: null });
} catch (e) {
console.error(e);