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 6d9785c commit c63dca3Copy full SHA for c63dca3
src/screens/JobProposal/SpecsView.tsx
@@ -144,10 +144,9 @@ export const SpecsView = withStyles(styles)(
144
}, [specs])
145
146
const approvableCancelledJobSpecs = sortedSpecs
147
- .map((spec, idx) => ({ spec, idx }))
148
- .filter((el) => el.spec.status === 'CANCELLED')
+ .filter((spec) => spec.status === 'CANCELLED')
149
.slice(0, 2)
150
- .map((el) => el.spec.id)
+ .map((spec) => spec.id)
151
152
const renderActions = (
153
status: SpecStatus,
0 commit comments