fixes mandate vars
This commit is contained in:
parent
d8e51c3d0a
commit
bd9807e06e
1 changed files with 1 additions and 6 deletions
|
|
@ -46,7 +46,7 @@ interface MandateContentProps {
|
||||||
|
|
||||||
function MandateContent({
|
function MandateContent({
|
||||||
mandateId,
|
mandateId,
|
||||||
mandateName,
|
mandateName: _mandateName,
|
||||||
instances,
|
instances,
|
||||||
instanceUsersMap,
|
instanceUsersMap,
|
||||||
features,
|
features,
|
||||||
|
|
@ -64,11 +64,6 @@ function MandateContent({
|
||||||
return map;
|
return map;
|
||||||
}, [instances]);
|
}, [instances]);
|
||||||
|
|
||||||
const mandateMeta = useMemo(() => {
|
|
||||||
const featureCount = Object.keys(byFeature).length;
|
|
||||||
const instanceCount = instances.length;
|
|
||||||
return { featureCount, instanceCount };
|
|
||||||
}, [byFeature, instances.length]);
|
|
||||||
|
|
||||||
const toggleInstance = (instanceId: string) => {
|
const toggleInstance = (instanceId: string) => {
|
||||||
setExpandedInstanceIds((prev) => {
|
setExpandedInstanceIds((prev) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue