From b522f1fef56103f7264877a7315ce2974bcf8fee Mon Sep 17 00:00:00 2001 From: "konrad.lys@eu.equinix.com" Date: Mon, 29 May 2023 17:38:27 +0200 Subject: [PATCH] BUGFIX make match field in label required --- .../paperless_api/lib/src/models/labels/label_model.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/paperless_api/lib/src/models/labels/label_model.dart b/packages/paperless_api/lib/src/models/labels/label_model.dart index 61d33eb..8ba06c4 100644 --- a/packages/paperless_api/lib/src/models/labels/label_model.dart +++ b/packages/paperless_api/lib/src/models/labels/label_model.dart @@ -15,7 +15,7 @@ abstract class Label extends Equatable implements Comparable { final int? id; final String name; final String? slug; - final String? match; + final String match; final MatchingAlgorithm matchingAlgorithm; final bool? isInsensitive; final int? documentCount; @@ -26,7 +26,7 @@ abstract class Label extends Equatable implements Comparable { this.id, required this.name, this.matchingAlgorithm = MatchingAlgorithm.defaultValue, - this.match, + this.match = "", this.isInsensitive = true, this.documentCount, this.slug, @@ -37,7 +37,7 @@ abstract class Label extends Equatable implements Comparable { Label copyWith({ int? id, String? name, - String? match, + String match, MatchingAlgorithm? matchingAlgorithm, bool? isInsensitive, int? documentCount,