hotfix on number chip validity, text fix

This commit is contained in:
Tim Chamberlain
2025-06-27 12:17:52 -05:00
parent d41f5f8339
commit 0d7e76df6c
2 changed files with 9 additions and 1 deletions

View File

@ -123,6 +123,14 @@ function ChipTextField({...props})
setChips(chipData);
chipsRef.current = chipData;
determineChipColors();
if (chipType !== "pvs")
{
const currentChipValidity = chips.map((chip, i) =>
(chipType !== "number" || !Number.isNaN(Number(chips[i])))
);
setChipValidity(currentChipValidity);
}
}, [JSON.stringify(chipData)]);
useEffect(() =>

View File

@ -342,7 +342,7 @@ function FilterCriteriaPaster({table, field, type, onSave}: Props): JSX.Element
if (type === "number")
{
let suffix = invalidCount === 1 ? " value is not a number" : " values are not numbers";
setErrorText(invalidCount + suffix + "numbers and will not be added to the filter");
setErrorText(invalidCount + suffix + " and will not be added to the filter");
}
else if (type === "pvs")
{