@adminforth/bulk-ai-flow 1.17.8 → 1.17.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -13,5 +13,5 @@ custom/package-lock.json
13
13
  custom/package.json
14
14
  custom/tsconfig.json
15
15
 
16
- sent 91,076 bytes received 172 bytes 182,496.00 bytes/sec
17
- total size is 90,431 speedup is 0.99
16
+ sent 91,084 bytes received 172 bytes 182,512.00 bytes/sec
17
+ total size is 90,439 speedup is 0.99
@@ -348,13 +348,13 @@ function shouldDisableRegenerateFieldIcon(item, name) {
348
348
 
349
349
  function checkForError(item, name) {
350
350
  if (props.outputFieldsForAnalizeFromImages.findIndex( el => el === name) !== -1) {
351
- const errorMessage = props.imageToTextErrorMessages[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])][name];
351
+ const errorMessage = props.imageToTextErrorMessages?.[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])]?.[name];
352
352
  if (errorMessage) {
353
353
  return errorMessage;
354
354
  }
355
355
  }
356
356
  if (props.outputPlainFields.findIndex( el => el === name) !== -1) {
357
- const errorMessage = props.textToTextErrorMessages[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])][name];
357
+ const errorMessage = props.textToTextErrorMessages?.[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])]?.[name];
358
358
  if (errorMessage) {
359
359
  return errorMessage;
360
360
  }
@@ -348,13 +348,13 @@ function shouldDisableRegenerateFieldIcon(item, name) {
348
348
 
349
349
  function checkForError(item, name) {
350
350
  if (props.outputFieldsForAnalizeFromImages.findIndex( el => el === name) !== -1) {
351
- const errorMessage = props.imageToTextErrorMessages[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])][name];
351
+ const errorMessage = props.imageToTextErrorMessages?.[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])]?.[name];
352
352
  if (errorMessage) {
353
353
  return errorMessage;
354
354
  }
355
355
  }
356
356
  if (props.outputPlainFields.findIndex( el => el === name) !== -1) {
357
- const errorMessage = props.textToTextErrorMessages[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])][name];
357
+ const errorMessage = props.textToTextErrorMessages?.[props.tableColumnsIndexes.findIndex(el => el[props.primaryKey] === item[props.primaryKey])]?.[name];
358
358
  if (errorMessage) {
359
359
  return errorMessage;
360
360
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/bulk-ai-flow",
3
- "version": "1.17.8",
3
+ "version": "1.17.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },