Fix active tool selection (#92)

This commit is contained in:
TrueDoctor
2021-05-02 08:30:51 +02:00
committed by Keavon Chambers
parent f05cb30acb
commit 8d683a4162
2 changed files with 5 additions and 2 deletions
@@ -332,7 +332,8 @@ export default defineComponent({
this.viewportSvg = responseData;
});
registerResponseHandler(ResponseType["Tool::SetActiveTool"], (responseData) => {
this.activeTool = responseData;
const [activeTool] = responseData;
this.activeTool = activeTool;
});
window.addEventListener("keyup", (e: KeyboardEvent) => this.keyUp(e));