Merge pull request #196 from stephb9959/main

[WIFI-13005] Firmware modal copy button fix
This commit is contained in:
Charles Bourque
2023-10-12 14:42:34 +01:00
committed by GitHub
4 changed files with 8 additions and 7 deletions

10
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ucentral-client",
"version": "2.11.0(11)",
"version": "2.11.0(12)",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ucentral-client",
"version": "2.11.0(11)",
"version": "2.11.0(12)",
"license": "ISC",
"dependencies": {
"@chakra-ui/anatomy": "^2.1.1",
@@ -8438,9 +8438,9 @@
}
},
"node_modules/postcss": {
"version": "8.4.28",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.28.tgz",
"integrity": "sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==",
"version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
"integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
"funding": [
{
"type": "opencollective",

View File

@@ -1,6 +1,6 @@
{
"name": "ucentral-client",
"version": "2.11.0(11)",
"version": "2.11.0(12)",
"description": "",
"private": true,
"main": "index.tsx",

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]);