@dskripchenko/laravel-admin 1.15.2 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -19756,7 +19756,7 @@ class Z2 extends Ze {
19756
19756
  /** Field-keyed map of error messages. */
19757
19757
  fields;
19758
19758
  constructor(t) {
19759
- super(422, t), this.name = "ValidationError", this.fields = t.messages ?? {};
19759
+ super(422, t), this.name = "ValidationError", this.fields = t.messages ?? t.errors ?? {};
19760
19760
  }
19761
19761
  /** Первое сообщение из field'а — удобно для toast. */
19762
19762
  firstFieldMessage() {