appsmith: [Bug] TypeError: Cannot read properties of undefined (reading 'parsed')
Sentry Issue: APPSMITH-15T
TypeError: Cannot read properties of undefined (reading 'parsed')
at None (workers/evaluationUtils.ts:453:68)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (15 by maintainers)
Here,
props.options
value becomesstring
somehow. Since themap
method isn’t available for a string, thedefaultSelectedValuesValidation()
function exits without returning the expected ValidationResponse. This is the root cause of this issue.Solutions:
props.options
becomesstring
insidedefaultSelectedValuesValidation()
function.options
as a dependency todefaultSelectedValues
so that thedefaultSelectedValuesValidation()
will be called only after evaluatingoptions
. The result is thatprops.options
insidedefaultSelectedValuesValidation()
will always be an array.I think we should go ahead with solution 2 since it is the generic solution.
Can we pick this on priority? We’re seeing this every day
@somangshu This should be a part of the stability improvement efforts which @aswathkk is helping with. #7678
We have found issues that are potential duplicates:
Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.