Add target kind check in viewport-host.ts

This commit is contained in:
2026-04-13 22:33:14 +02:00
parent f5ce536759
commit bcf03e7b72
2 changed files with 2 additions and 1 deletions

View File

@@ -3282,6 +3282,7 @@ export class ViewportHost {
if (
activeTransformSession.kind !== "active" ||
activeTransformSession.target.kind !== "pathPoint" ||
activeTransformSession.preview.kind !== "pathPoint" ||
this.currentDocument === null
) {

View File

@@ -1,4 +1,4 @@
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import { fireEvent, render, waitFor } from "@testing-library/react";
import { act } from "react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";