mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
fix prop type error in LabelSelect
This commit is contained in:
parent
6d00d43273
commit
82064eb4dc
@ -1,5 +1,5 @@
|
|||||||
import React, { useState, useEffect } from 'react';
|
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 MultiSelect from '@components/MultiSelect';
|
||||||
import { LabelsAPI } from '@api';
|
import { LabelsAPI } from '@api';
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ function LabelSelect({ value, onChange, onError }) {
|
|||||||
LabelSelect.propTypes = {
|
LabelSelect.propTypes = {
|
||||||
value: arrayOf(
|
value: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
id: number.isRequired,
|
id: oneOfType([number, string]).isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
})
|
})
|
||||||
).isRequired,
|
).isRequired,
|
||||||
|
Loading…
Reference in New Issue
Block a user