From 82064eb4dcecddd1125a7516a967aee3b428ed0e Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Wed, 2 Oct 2019 14:17:14 -0700 Subject: [PATCH] fix prop type error in LabelSelect --- awx/ui_next/src/screens/Template/shared/LabelSelect.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui_next/src/screens/Template/shared/LabelSelect.jsx b/awx/ui_next/src/screens/Template/shared/LabelSelect.jsx index 73f9b5278c..3443aeb3b4 100644 --- a/awx/ui_next/src/screens/Template/shared/LabelSelect.jsx +++ b/awx/ui_next/src/screens/Template/shared/LabelSelect.jsx @@ -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,