兼容缺少偏移量的预览运行数据
校验 offset 前安全处理旧状态和测试夹具
This commit is contained in:
+3
-3
@@ -134,9 +134,9 @@ export function PreviewWorkspace({
|
||||
image,
|
||||
width,
|
||||
height,
|
||||
validOffset: item.root.offset.min.every((value) =>
|
||||
Number.isFinite(value),
|
||||
),
|
||||
validOffset:
|
||||
item.root.offset?.min?.every((value) => Number.isFinite(value)) ??
|
||||
false,
|
||||
};
|
||||
}),
|
||||
[images, uiTrees],
|
||||
|
||||
Reference in New Issue
Block a user