Skip to content

Commit 83e5611

Browse files
author
Vikas Agarwal
committed
Fixed lint errors
1 parent 85f2c1b commit 83e5611

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/components/SelectDropdown/SelectDropdown.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ class SelectDropdown extends Component {
1717
selectedOption = this.props.options[0]
1818
}
1919
this.setState({
20-
selectedOption: selectedOption
21-
}, function() {
20+
selectedOption
21+
}/*, function() {
2222
// FIXME intentionally commented because it was causing multiple renders when used in mobility testing template
2323
// Need to further analyze
2424
// It does not seem to add any value either in both of its usage (it is used in App Screens section
2525
// for design projects and in mobility testing projects)
26-
27-
// this.props.setValue(this.state.selectedOption.value)
28-
})
26+
this.props.setValue(this.state.selectedOption.value)
27+
}*/)
2928
}
3029

3130
handleClick(option) {

src/config/projectQuestions/mobility_testing.v1.0.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const sections = [
160160
description: '',
161161
title: 'Do you have a specific timeline for testing? If so, please provide approximate start and end dates.',
162162
type: 'textbox'
163-
},
163+
}
164164
]
165165
},
166166
{
@@ -193,7 +193,7 @@ const sections = [
193193
description: '',
194194
title: 'Are any specific skills required to test your application? If so, please list them.',
195195
type: 'textbox'
196-
},
196+
}
197197
]
198198
},
199199
{
@@ -226,7 +226,7 @@ const sections = [
226226
description: '',
227227
title: 'Are there any other specific details related to the environment you can share?',
228228
type: 'textbox'
229-
},
229+
}
230230
]
231231
},
232232
{
@@ -259,9 +259,9 @@ const sections = [
259259
description: '',
260260
title: 'Does the application require training to utilize it properly? If so, are you able to provide these inputs?',
261261
type: 'textbox'
262-
},
262+
}
263263
]
264-
},{
264+
}, {
265265
id: 'cyclePreferences',
266266
required: false,
267267
title: 'Test Cycle Preferences',
@@ -283,7 +283,7 @@ const sections = [
283283
description: 'Are there any types of defects you would like ommitted from issue reports?',
284284
title: '',
285285
type: 'textbox'
286-
},
286+
}
287287
]
288288
},
289289
{

src/projects/detail/components/SpecScreenQuestions.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ const SpecScreenQuestions = ({questions, screen}) => {
5959
ChildElem = ColorSelector
6060
_.assign(elemProps, { defaultColors: q.defaultColors })
6161
break
62-
case 'select-dropdown':
62+
case 'select-dropdown': {
6363
ChildElem = SelectDropdown
64-
const importanceLevel = _.get(screen, "importanceLevel")
64+
const importanceLevel = _.get(screen, 'importanceLevel')
6565
_.assign(elemProps, {
6666
options: q.options,
6767
theme: 'default',
@@ -70,6 +70,7 @@ const SpecScreenQuestions = ({questions, screen}) => {
7070
value: importanceLevel.value ? importanceLevel.value : importanceLevel
7171
})
7272
break
73+
}
7374
default:
7475
ChildElem = <noscript />
7576
}

0 commit comments

Comments
 (0)