diff --git a/ui/src/actions/sampleview.js b/ui/src/actions/sampleview.js index 99cc5948c..c86ae20aa 100644 --- a/ui/src/actions/sampleview.js +++ b/ui/src/actions/sampleview.js @@ -426,9 +426,9 @@ export function sendDeleteShape(id) { export function unselectShapes(shapes) { return (dispatch, getState) => { - const login = getState(); + const state = getState(); - if (login.user.userInControl) { + if (state.login.user.inControl) { const _shapes = []; if (shapes.shapes !== undefined) { const keys = Object.keys(shapes.shapes);