update type check for getTypeFromVertex

This commit is contained in:
saurabhg772244
2024-09-16 13:19:41 +05:30
parent 78f9238865
commit aa0836aecc

View File

@@ -820,13 +820,13 @@ const getTypeFromVertex = (vertex: FlowVertex) => {
return 'imageSquare';
}
if (vertex?.icon) {
if (vertex.form === 'circle') {
if (vertex?.form === 'circle') {
return 'iconCircle';
}
if (vertex.form === 'square') {
if (vertex?.form === 'square') {
return 'iconSquare';
}
if (vertex.form === 'rounded') {
if (vertex?.form === 'rounded') {
return 'iconRounded';
}
return 'icon';