migrate old underscore pluck to lodash map
cf. https://github.com/lodash/lodash/wiki/Migrating fixes EVAL-3932 Change-Id: I32f79cc00cc00744a5622d017b255aae2f7a6c93 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/339601 Reviewed-by: Jackson Huang <jackson.huang@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com> Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
This commit is contained in:
parent
1dd327699f
commit
5b08b1f011
|
@ -16,7 +16,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import {chain, debounce, find, groupBy, isEmpty, pluck, some, union} from 'lodash'
|
||||
import {chain, debounce, find, map, groupBy, isEmpty, some, union} from 'lodash'
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import OverrideStudentStore from './OverrideStudentStore'
|
||||
|
@ -351,7 +351,7 @@ class DueDateTokenWrapper extends React.Component {
|
|||
if (this.props.disabled) {
|
||||
return (
|
||||
// eslint-disable-next-line react/no-string-refs
|
||||
<DisabledTokenInput tokens={pluck(this.props.tokens, 'name')} ref="DisabledTokenInput" />
|
||||
<DisabledTokenInput tokens={map(this.props.tokens, 'name')} ref="DisabledTokenInput" />
|
||||
)
|
||||
}
|
||||
const ariaLabel = I18n.t(
|
||||
|
|
Loading…
Reference in New Issue