feat: enhance Comfy API handling and add tests for branded non-Z diffusion models
This commit is contained in:
@@ -3,7 +3,7 @@ import type { Dispatch } from "@commands/dispatcher";
|
||||
import { commandIds } from "@commands/ids";
|
||||
|
||||
export function useCanvasResize(canvasRef: RefObject<HTMLCanvasElement | null>, dispatch: Dispatch) {
|
||||
const lastSize = useRef<{ w: number; h: number }>();
|
||||
const lastSize = useRef<{ w: number; h: number } | undefined>(undefined);
|
||||
|
||||
useEffect(() => {
|
||||
const canvas = canvasRef.current;
|
||||
|
||||
Reference in New Issue
Block a user