= (props) => {
const warningMessageClassName = `alert alert-warning ${
warningMessageClass || 'flex-1 align-items-center'
}`
+ if(!props.warningMessage) {
+ return null
+ }
return (
= ({
projectId,
tabTheme,
}) => {
+ const {data:projectFlag} = useGetProjectFlagQuery({project:projectId, id: featureId})
+
const oldEnv = oldState?.find((v) => !v.feature_segment)
const newEnv = newState?.find((v) => !v.feature_segment)
const { data: feature } = useGetProjectFlagQuery({
@@ -65,7 +67,7 @@ const DiffFeature: FC = ({
const segmentDiffs = disableSegments
? { diffs: [], totalChanges: 0 }
: getSegmentDiff(oldState, newState, segments?.results, conflicts)
- const variationDiffs = getVariationDiff(oldEnv, newEnv, feature)
+ const variationDiffs = getVariationDiff(oldEnv, newEnv)
const totalSegmentChanges = segmentDiffs?.totalChanges
const totalVariationChanges = variationDiffs?.totalChanges
useEffect(() => {
@@ -105,11 +107,6 @@ const DiffFeature: FC = ({
}
>
- {!totalChanges && (
-
- No Changes Found
-
- )}
{!!valueConflict && (
= ({
}
>
-
+