Remove duplicate check

This commit is contained in:
Kai Hao 2019-12-12 16:48:34 +08:00
parent 0b111bbe62
commit 64e57efd1f

View File

@ -130,7 +130,7 @@ export const ViewportTool: FunctionComponent = memo(
disable,
} = useParameter<ViewportAddonParameter>(PARAM_KEY, {});
const [state, setState] = useAddonState<ViewportToolState>(ADDON_ID, {
selected: defaultViewport || responsiveViewport.id,
selected: defaultViewport,
isRotated: false,
});
const list = toList(viewports);