1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fix prop type error in LabelSelect

This commit is contained in:
Keith Grant 2019-10-02 14:17:14 -07:00
parent 6d00d43273
commit 82064eb4dc

View File

@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
import { func, arrayOf, number, shape, string } from 'prop-types';
import { func, arrayOf, number, shape, string, oneOfType } from 'prop-types';
import MultiSelect from '@components/MultiSelect';
import { LabelsAPI } from '@api';
@ -51,7 +51,7 @@ function LabelSelect({ value, onChange, onError }) {
LabelSelect.propTypes = {
value: arrayOf(
shape({
id: number.isRequired,
id: oneOfType([number, string]).isRequired,
name: string.isRequired,
})
).isRequired,