Index: components/ProductDetails/ProductDetails.component.tsx
===================================================================
diff -u -r4b2ec8d8eeca489bae74d103b59e4ba14adaee46 -r8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8
--- components/ProductDetails/ProductDetails.component.tsx (.../ProductDetails.component.tsx) (revision 4b2ec8d8eeca489bae74d103b59e4ba14adaee46)
+++ components/ProductDetails/ProductDetails.component.tsx (.../ProductDetails.component.tsx) (revision 8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8)
@@ -142,7 +142,7 @@
/>
-
+
Index: components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.component.tsx
===================================================================
diff -u -rc9ac16c365bb8ed527371e5694d9b24a56959a80 -r8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8
--- components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.component.tsx (.../ProductDetailsSplitValidation.component.tsx) (revision c9ac16c365bb8ed527371e5694d9b24a56959a80)
+++ components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.component.tsx (.../ProductDetailsSplitValidation.component.tsx) (revision 8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8)
@@ -4,5 +4,5 @@
import { ProductDetailsSplitValidationProps } from './ProductDetailsSplitValidation.types';
export const ProductDetailsSplitValidationComponent = (props:ProductDetailsSplitValidationProps) =>
- ;
+ ;
\ No newline at end of file
Index: components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.types.ts
===================================================================
diff -u -r802a5d63c78f68e273bb7e0dea8c49f67c4f8637 -r8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8
--- components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.types.ts (.../ProductDetailsSplitValidation.types.ts) (revision 802a5d63c78f68e273bb7e0dea8c49f67c4f8637)
+++ components/ProductDetailsSplitValidation/ProductDetailsSplitValidation.types.ts (.../ProductDetailsSplitValidation.types.ts) (revision 8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8)
@@ -2,6 +2,7 @@
// What gets passed into the component from the parent as attributes
export interface IProductDetailsSplitValidationProps {
productId?: any;
+ refreshTrigger?: boolean;
}
// What gets returned from the first connect function (mapStateToProps)
Index: components/ProductSplitValidator/ProductSplitValidator.component.tsx
===================================================================
diff -u -r5afd242500e7067eb6ea4189d7aeb00944eb9805 -r8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8
--- components/ProductSplitValidator/ProductSplitValidator.component.tsx (.../ProductSplitValidator.component.tsx) (revision 5afd242500e7067eb6ea4189d7aeb00944eb9805)
+++ components/ProductSplitValidator/ProductSplitValidator.component.tsx (.../ProductSplitValidator.component.tsx) (revision 8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8)
@@ -12,6 +12,7 @@
expandedRowId = null,
status = 'loading',
partNumbers = [],
+ refreshTrigger,
...props
}:ProductSplitValidatorProps) => {
const [excludedAttributes, setExcludedAttributes] = React.useState([]);
@@ -28,11 +29,11 @@
React.useEffect( () => {
fetchAttributes();
- }, []);
+ }, [refreshTrigger]);
React.useEffect( () => {
props.runValidation();
- }, [props.productId]);
+ }, [props.productId, refreshTrigger]);
const generateHandleBulkAttrClick = (partNums:string[]) => () => props.goToBulkAttribute(partNums);
const handleToggleExpandRow = (expandedRowKeys:number[]) => {
Index: components/ProductSplitValidator/ProductSplitValidator.types.ts
===================================================================
diff -u -r75ad20b19058b51f03057fac75b63119126c46c5 -r8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8
--- components/ProductSplitValidator/ProductSplitValidator.types.ts (.../ProductSplitValidator.types.ts) (revision 75ad20b19058b51f03057fac75b63119126c46c5)
+++ components/ProductSplitValidator/ProductSplitValidator.types.ts (.../ProductSplitValidator.types.ts) (revision 8eccfffe57185fa5a95f8b97bc5e1e389d1e3ca8)
@@ -3,6 +3,7 @@
export interface IProductSplitValidatorProps {
productId: string;
hideButtons?: boolean;
+ refreshTrigger?: boolean;
}
// What gets returned from the first connect function (mapStateToProps)