fix: do not trigger evaluation replica 0

This commit is contained in:
jialin
2025-10-31 13:10:52 +08:00
parent d7ef64746c
commit f6a3497b0c
4 changed files with 3 additions and 38 deletions
+3 -1
View File
@@ -392,9 +392,11 @@ export const useCheckCompatibility = () => {
source: string;
}) => {
const { allValues, source } = params;
console.log('handleOnValuesChange', allValues);
if (
_.isEqual(cacheFormValuesRef.current, allValues) ||
noLocalPathValue(allValues)
noLocalPathValue(allValues) ||
!allValues.replicas
) {
console.log('No changes detected, skipping evaluation.');
return;