Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit acd7ea1

Browse files
committed
add _error_bag
1 parent 80f8a7d commit acd7ea1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/InertiaForm.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ class InertiaForm {
6666
}
6767

6868
data() {
69-
const data = {};
69+
const data = {
70+
'_error_bag': this.__options.bag
71+
};
7072

7173
for (const property in this.initial) {
7274
data[property] = this[property];

0 commit comments

Comments
 (0)