Skip to content

Commit f706f90

Browse files
authored
Merge pull request #6058 from WiXSL/fix-undefined-final
Fix ReferenceInput set incorrect total value
2 parents 4646bf0 + ce4774a commit f706f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/controller/input/useReferenceInputController.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const useReferenceInputController = (
145145
} else {
146146
finalIds = [input.value, ...possibleValuesIds];
147147
finalData = { [input.value]: referenceRecord, ...possibleValuesData };
148-
finalTotal += 1;
148+
finalTotal = possibleValuesTotal + 1;
149149
}
150150

151151
// overall status

0 commit comments

Comments
 (0)