Skip to content

Commit

Permalink
2.3.1-rc.2 (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarski authored Jul 3, 2024
2 parents 578a9ad + a61da37 commit 0c27819
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/mudita-center/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/mudita-center/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mudita-center",
"version": "2.3.1-rc.1a",
"version": "2.3.1-rc.2",
"description": "Mudita Center",
"main": "./dist/main.js",
"productName": "Mudita Center",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { DrawerDevice } from "Core/device-select/components/drawer-device.compon
import { defineMessages } from "react-intl"
import { DeviceId } from "Core/device/constants/device-id"
import { ModalLayers } from "Core/modals-manager/constants/modal-layers.enum"
import { useEffect } from "react"

const messages = defineMessages({
changeDevice: { id: "component.drawer.headerTitle" },
Expand Down Expand Up @@ -92,6 +93,12 @@ const DeviceSelectDrawer: FunctionComponent = () => {
}
}

useEffect(() => {
if (devices.length === 0) {
dispatch(setSelectDeviceDrawerOpen(false))
}
}, [dispatch, devices.length])

return (
<DrawerWrapper>
<Drawer
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c27819

Please sign in to comment.