groups-js: add ourselves to admin in group-update reducer

Fixes #3825
This commit is contained in:
Liam Fitzgerald 2020-10-29 15:18:39 +10:00
parent e6bb7df10b
commit 5ebbb26f41

View File

@ -103,7 +103,7 @@ export default class GroupReducer<S extends GroupState> {
const resourcePath = resourceAsPath(resource);
state.groups[resourcePath] = {
members: new Set(),
tags: { role: {} },
tags: { role: { admin: new Set([window.ship]) } },
policy: decodePolicy(policy),
hidden,
};