[WIFI-13005] Firmware modal copy button fix

Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
Charles
2023-10-12 14:42:01 +01:00
parent 2194a7fc23
commit ec8347fd7d
4 changed files with 8 additions and 7 deletions

View File

@@ -694,7 +694,7 @@ const DeviceListCard = () => {
<DataGrid<DeviceWithStatus>
controller={tableController}
header={{
title: `${getCount.data?.count} ${t('devices.title')}`,
title: `${getCount.data?.count ?? 0} ${t('devices.title')}`,
objectListed: t('devices.title'),
leftContent: <GlobalSearchBar />,
otherButtons: (

View File

@@ -138,6 +138,7 @@ const FirmwareDetailsModal = ({ modalProps, firmware }: Props) => {
React.useEffect(() => {
if (firmware) {
copy.setValue(firmware?.uri ?? '');
setNewDescription(firmware?.description);
}
}, [firmware]);