Fix active tool selection (#92)

This commit is contained in:
TrueDoctor
2021-05-07 02:47:38 -07:00
committed by Keavon Chambers
parent 3ab5f6b7ef
commit c540d781e1
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));