Skip to content

Commit ebcdf9f

Browse files
edge case
1 parent cac5fad commit ebcdf9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/components/Popups/GraphEnhancementDialog/EnitityExtraction/NewEntityExtractionSetting.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,11 @@ export default function NewEntityExtractionSetting({
218218
}
219219
return prev;
220220
});
221-
console.log({ updatedTuples });
222221
setTupleOptions(updatedTuples);
223222
} else {
223+
if (tupleOptions.length == 0 && tupleOptionsValue.length > 0) {
224+
setTupleOptions(tupleOptionsValue);
225+
}
224226
showNormalToast('Pattern Already Exists');
225227
}
226228
setSource(null);

0 commit comments

Comments
 (0)