We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38afd8f commit 6364e5aCopy full SHA for 6364e5a
1 file changed
lib/domain/dtos/filters/RunFilterDto.js
@@ -89,8 +89,7 @@ exports.RunFilterDto = Joi.object({
89
90
gaq: Joi.object({
91
notBadFraction: FloatComparisonDto.custom((value, helpers) => {
92
- // eslint-disable-next-line prefer-destructuring
93
- const { dataPassIds } = helpers.state.ancestors[1];
+ const [, { dataPassIds }] = helpers.state.ancestors;
94
95
if (!dataPassIds || dataPassIds.length !== 1) {
96
return helpers.message('Filtering by GAQ is enabled only when filtering with one dataPassId');
0 commit comments