diff --git a/src/components/CippComponents/CippApiDialog.jsx b/src/components/CippComponents/CippApiDialog.jsx index dc75f5b54781..653c69541dca 100644 --- a/src/components/CippComponents/CippApiDialog.jsx +++ b/src/components/CippComponents/CippApiDialog.jsx @@ -301,7 +301,6 @@ export const CippApiDialog = (props) => { }; var confirmText; - console.log(row); if (typeof api?.confirmText === "string" && !Array.isArray(row)) { confirmText = api.confirmText.replace(/\[([^\]]+)\]/g, (_, key) => { return getNestedValue(row, key) || `[${key}]`; diff --git a/src/components/CippStandards/CippStandardDialog.jsx b/src/components/CippStandards/CippStandardDialog.jsx index d2b94853e6ee..69b014d723e4 100644 --- a/src/components/CippStandards/CippStandardDialog.jsx +++ b/src/components/CippStandards/CippStandardDialog.jsx @@ -48,21 +48,25 @@ const CippStandardDialog = ({ ); return ( - + }} + > Select a Standard to Add handleSearchQueryChange(e.target.value.toLowerCase())} /> - + {Object.keys(categories).every( (category) => filterStandards(categories[category]).length === 0 ) ? ( @@ -101,12 +105,7 @@ const CippStandardDialog = ({ Category: - + {standard.tag?.filter((tag) => !tag.toLowerCase().includes("impact")).length > 0 && ( <> @@ -147,11 +146,7 @@ const CippStandardDialog = ({ Recommended By: - + {standard.recommendedBy.join(", ")} @@ -172,9 +167,7 @@ const CippStandardDialog = ({ control={ - handleToggleSingleStandard(standard.name) - } + onChange={() => handleToggleSingleStandard(standard.name)} /> } label="Add this standard to the template"