@procaaso/alphinity-ui-components 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1514,8 +1514,9 @@ function DeviceControlPanel({
|
|
|
1514
1514
|
"button",
|
|
1515
1515
|
{
|
|
1516
1516
|
onClick: () => {
|
|
1517
|
-
|
|
1518
|
-
|
|
1517
|
+
const modeToSend = pendingMode || currentMode || binding.modes[0]?.value;
|
|
1518
|
+
if (modeToSend) {
|
|
1519
|
+
handleModeChange(modeToSend);
|
|
1519
1520
|
}
|
|
1520
1521
|
setShowModeModal(false);
|
|
1521
1522
|
setPendingMode(null);
|