mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-11-01 18:57:46 +00:00
[WIFI-13005] Firmware modal copy button fix
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
@@ -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: (
|
||||
|
||||
@@ -138,6 +138,7 @@ const FirmwareDetailsModal = ({ modalProps, firmware }: Props) => {
|
||||
|
||||
React.useEffect(() => {
|
||||
if (firmware) {
|
||||
copy.setValue(firmware?.uri ?? '');
|
||||
setNewDescription(firmware?.description);
|
||||
}
|
||||
}, [firmware]);
|
||||
|
||||
Reference in New Issue
Block a user