diff --git a/client/app/pages/queries/components/QuerySourceDropdown.jsx b/client/app/pages/queries/components/QuerySourceDropdown.jsx index 2cdb54a016..aed1aa0220 100644 --- a/client/app/pages/queries/components/QuerySourceDropdown.jsx +++ b/client/app/pages/queries/components/QuerySourceDropdown.jsx @@ -29,7 +29,7 @@ export function QuerySourceDropdown(props) { QuerySourceDropdown.propTypes = { dataSources: PropTypes.any, - value: PropTypes.string, + value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), disabled: PropTypes.bool, loading: PropTypes.bool, onChange: PropTypes.func, diff --git a/client/app/pages/queries/components/QuerySourceDropdownItem.jsx b/client/app/pages/queries/components/QuerySourceDropdownItem.jsx index e15186dc9f..38e976f5f9 100644 --- a/client/app/pages/queries/components/QuerySourceDropdownItem.jsx +++ b/client/app/pages/queries/components/QuerySourceDropdownItem.jsx @@ -15,7 +15,7 @@ export function QuerySourceDropdownItem({ dataSource, children }) { QuerySourceDropdownItem.propTypes = { dataSource: PropTypes.shape({ name: PropTypes.string, - id: PropTypes.string, + id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), type: PropTypes.string, }).isRequired, children: PropTypes.element,