Skip to content

Commit

Permalink
fix(zimbra): fix the filter by organization on domain datagrid
Browse files Browse the repository at this point in the history
ref: MANAGER-15393

Signed-off-by: Guillaume Hyenne <[email protected]>
  • Loading branch information
ghyenne committed Sep 25, 2024
1 parent f523e37 commit 8899a3c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { DATAGRID_REFRESH_INTERVAL, DATAGRID_REFRESH_ON_MOUNT } from '@/utils';
export type DomainsItem = {
id: string;
name: string;
organizationId: string;
organizationLabel: string;
account: number;
};
Expand All @@ -53,7 +54,7 @@ const columns: DatagridColumn<DomainsItem>[] = [
id: 'organization',
cell: (item) =>
item.organizationLabel && (
<LabelChip id={item.id}>{item.organizationLabel}</LabelChip>
<LabelChip id={item.organizationId}>{item.organizationLabel}</LabelChip>
),
label: 'zimbra_domains_datagrid_organization_label',
},
Expand Down Expand Up @@ -95,6 +96,7 @@ export default function Domains() {
data?.map((item) => ({
name: item.currentState.name,
id: item.id,
organizationId: item.currentState.organizationId,
organizationLabel: item.currentState.organizationLabel,
account: item.currentState.accountsStatistics.reduce(
(acc, current) => acc + current.configuredAccountsCount,
Expand Down

0 comments on commit 8899a3c

Please sign in to comment.