We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1057108 commit b0f07cfCopy full SHA for b0f07cf
custom/VisionAction.vue
@@ -548,7 +548,12 @@ async function saveData() {
548
}
549
if (!overwriteExistingValues.value) {
550
const imageURL = selected.value.find(rec => rec[primaryKey] === item[primaryKey])[key];
551
- const originalImageUrl = listOfImageThatWasNotGeneratedPerRecord.value[item[primaryKey]][key].originalImage;
+ let originalImageUrl = ''
552
+ try {
553
+ originalImageUrl = listOfImageThatWasNotGeneratedPerRecord.value[item[primaryKey]][key].originalImage;
554
+ } catch (error) {
555
+ originalImageUrl = '';
556
+ }
557
if (originalImageUrl === imageURL) {
558
reqData.find(rec => rec[primaryKey] === item[primaryKey])[key] = undefined;
559
continue;
0 commit comments