From 3250ebf166b82c6856e9604693a7fd0803515e64 Mon Sep 17 00:00:00 2001 From: m n Date: Fri, 17 Jan 2025 13:28:20 -0700 Subject: [PATCH] Remove easy-to-remove console warnings --- src/components/FilterSearchToolbar/FilterSearchToolbar.js | 2 +- src/components/NewAttributeModal/NewAttributeModal.js | 2 +- .../BenthicPhotoQuadratTransectInputs.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FilterSearchToolbar/FilterSearchToolbar.js b/src/components/FilterSearchToolbar/FilterSearchToolbar.js index 6bbe5043e..b9c864992 100644 --- a/src/components/FilterSearchToolbar/FilterSearchToolbar.js +++ b/src/components/FilterSearchToolbar/FilterSearchToolbar.js @@ -126,7 +126,7 @@ FilterSearchToolbar.propTypes = { id: PropTypes.string, name: PropTypes.string.isRequired, disabled: PropTypes.bool, - globalSearchText: PropTypes.string.isRequired, + globalSearchText: PropTypes.string, handleGlobalFilterChange: PropTypes.func.isRequired, type: PropTypes.string, } diff --git a/src/components/NewAttributeModal/NewAttributeModal.js b/src/components/NewAttributeModal/NewAttributeModal.js index 09db4fdc6..73b8fe1fb 100644 --- a/src/components/NewAttributeModal/NewAttributeModal.js +++ b/src/components/NewAttributeModal/NewAttributeModal.js @@ -355,7 +355,7 @@ MainContentPages.propTypes = { handleFormikPageOneValueChange: PropTypes.func.isRequired, handleNewAttributeChange: PropTypes.func.isRequired, handleSubmit: PropTypes.func.isRequired, - attributeName: PropTypes.string.isRequired, + attributeName: PropTypes.string, } NewAttributeModal.propTypes = { diff --git a/src/components/pages/collectRecordFormPages/BenthicPhotoQuadratForm/BenthicPhotoQuadratTransectInputs.js b/src/components/pages/collectRecordFormPages/BenthicPhotoQuadratForm/BenthicPhotoQuadratTransectInputs.js index 83211c9c5..913ffcfb4 100644 --- a/src/components/pages/collectRecordFormPages/BenthicPhotoQuadratForm/BenthicPhotoQuadratTransectInputs.js +++ b/src/components/pages/collectRecordFormPages/BenthicPhotoQuadratForm/BenthicPhotoQuadratTransectInputs.js @@ -512,7 +512,7 @@ BenthicPhotoQuadratTransectInputs.propTypes = { validationsApiData: PropTypes.shape({ quadrat_transect: benthicpqtValidationPropType }) .isRequired, validationPropertiesWithDirtyResetOnInputChange: PropTypes.func.isRequired, - isImageClassification: PropTypes.bool.isRequired, + isImageClassification: PropTypes.bool, } export default BenthicPhotoQuadratTransectInputs