mirror of
https://github.com/responsively-org/responsively-app
synced 2024-11-10 14:54:12 +00:00
place dispatch within existing handler for individdual component selection
This commit is contained in:
parent
3647815f0f
commit
02c31c911d
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,8 @@ import {
|
|||
selectAddress,
|
||||
selectIsInspecting,
|
||||
selectLayout,
|
||||
setZoom100,
|
||||
restoreZoom,
|
||||
selectRotate,
|
||||
selectZoomFactor,
|
||||
setAddress,
|
||||
|
@ -199,8 +201,10 @@ const Device = ({ isPrimary, device, setIndividualDevice }: Props) => {
|
|||
if (!isIndividualLayout) {
|
||||
dispatch(setLayout(PREVIEW_LAYOUTS.INDIVIDUAL));
|
||||
setIndividualDevice(selectedDevice);
|
||||
dispatch(setZoom100());
|
||||
} else {
|
||||
dispatch(setLayout(PREVIEW_LAYOUTS.COLUMN));
|
||||
dispatch(restoreZoom());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue