Fixed issue 2516

main
Boris Sekachev 5 years ago
parent d6ac8cc5be
commit fc1c60f735

@ -510,13 +510,13 @@ export function removeObjectAsync(sessionInstance: any, objectState: any, force:
}, },
}); });
} else { } else {
throw new Error('Could not remove the object. Is it locked?'); throw new Error('Could not remove the locked object');
} }
} catch (error) { } catch (error) {
dispatch({ dispatch({
type: AnnotationActionTypes.REMOVE_OBJECT_FAILED, type: AnnotationActionTypes.REMOVE_OBJECT_FAILED,
payload: { payload: {
objectState, error,
}, },
}); });
} }

Loading…
Cancel
Save