fix bug 1

This commit is contained in:
Hugo Lextrait 2023-05-10 10:53:38 +02:00
parent b0d6c1a3c0
commit a6b46dbb8e

View File

@ -62,6 +62,7 @@ export default class ClientSection extends React.Component<IProps, IState> {
}
private doesFolderHaveCustomer(): boolean {
return this.props.folder.office_folder_has_customers !== undefined;
if (!this.props.folder?.office_folder_has_customers) return false;
return this.props.folder?.office_folder_has_customers!.length > 0;
}
}