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:
parent
6d00d43273
commit
82064eb4dc
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user