We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4d9515 + 9e4934b commit ff8c3d6Copy full SHA for ff8c3d6
1 file changed
frontend/components/form/IRSForm.tsx
@@ -35,7 +35,7 @@ const IRSForm = ({
35
const { format } = useTranslations();
36
37
useEffect(() => {
38
- if (!allData?.length && updatedInterfaceData) {
+ if (!allData?.length && updatedInterfaceData && updatedInterfaceData.length > 0) {
39
const updatedData = updatedInterfaceData.map((data) => {
40
return {
41
...data,
@@ -47,7 +47,7 @@ const IRSForm = ({
47
return;
48
}
49
50
- if (!allData?.length && updatedRequirementSpecData) {
+ if (!allData?.length && updatedRequirementSpecData && updatedRequirementSpecData.length > 0) {
51
setAllData(updatedRequirementSpecData);
52
53
0 commit comments