fix(web): build issue

This commit is contained in:
BennyKok 2023-12-21 17:46:13 +08:00
parent 91b8c4d702
commit be0acf26fd

View File

@ -240,7 +240,7 @@ export function VersionDetails({
{inputs && (
<div className="flex flex-col gap-2">
{inputs.map((value) => {
if (!value.class_type) return <> </>;
if (!value || !value.class_type) return <> </>;
const nodeType = customInputNodes[value.class_type];
if (nodeType) {
const input_id = value.input_id;