code refactor

This commit is contained in:
saurabhg772244
2024-09-17 22:33:10 +05:30
parent 522de3abd8
commit 3f5afe8daf

View File

@@ -814,17 +814,17 @@ export const lex = {
};
const getTypeFromVertex = (vertex: FlowVertex) => {
if (vertex?.img) {
if (vertex.img) {
return 'imageSquare';
}
if (vertex?.icon) {
if (vertex?.form === 'circle') {
if (vertex.icon) {
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';