Skip to content

Commit

Permalink
fix(ava/insight): fix the infinite loop issue when recommendation hit…
Browse files Browse the repository at this point in the history
…ting both Integer and Date types
  • Loading branch information
Tomotoes authored and chenluli committed Feb 7, 2024
1 parent 6f57d08 commit 05a1c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ava/src/data/analysis/field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export function analyzeField(
restNotNullArray = restNotNullArray.filter((item) => !isDateString(item));
} else if (item === 'integer') {
meta.integer = analyzeField(
restNotNullArray.filter((item) => isIntegerString(item)),
restNotNullArray.filter((item) => isIntegerString(item) && !isDateString(item)),
strictDatePattern
) as NumberFieldInfo;
restNotNullArray = restNotNullArray.filter((item) => !isIntegerString(item));
Expand Down

0 comments on commit 05a1c48

Please sign in to comment.