We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 393687a commit 88f494aCopy full SHA for 88f494a
client/django-formset/DjangoFormset.ts
@@ -1788,7 +1788,7 @@ export class DjangoFormset implements DjangoFormset {
1788
public readonly showFeedbackMessages: boolean;
1789
private readonly abortController = new AbortController;
1790
private readonly emptyCollectionPrefixes = Array<string>(0);
1791
- private data: object|null = null;
+ private data?: object;
1792
1793
constructor(formset: DjangoFormsetElement) {
1794
this.element = formset;
@@ -2034,7 +2034,7 @@ export class DjangoFormset implements DjangoFormset {
2034
}
2035
2036
2037
- if (this.data === null) {
+ if (this.data === undefined) {
2038
// submit an untouched formset
2039
this.aggregateValues();
2040
0 commit comments