mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 10:12:21 -06:00
BUGFIX make match field in label required
This commit is contained in:
@@ -147,13 +147,6 @@ class _LabelFormState<T extends Label> extends State<LabelForm<T>> {
|
|||||||
...widget.initialValue?.toJson() ?? {},
|
...widget.initialValue?.toJson() ?? {},
|
||||||
..._formKey.currentState!.value
|
..._formKey.currentState!.value
|
||||||
};
|
};
|
||||||
if (mergedJson[Label.matchingAlgorithmKey] ==
|
|
||||||
MatchingAlgorithm.auto.value ||
|
|
||||||
mergedJson[Label.matchingAlgorithmKey] ==
|
|
||||||
MatchingAlgorithm.none.value) {
|
|
||||||
// If auto is selected, the match will be removed.
|
|
||||||
mergedJson[Label.matchKey] = '';
|
|
||||||
}
|
|
||||||
final parsed = widget.fromJsonT(mergedJson);
|
final parsed = widget.fromJsonT(mergedJson);
|
||||||
final createdLabel = await widget.submitButtonConfig.onSubmit(parsed);
|
final createdLabel = await widget.submitButtonConfig.onSubmit(parsed);
|
||||||
Navigator.pop(context, createdLabel);
|
Navigator.pop(context, createdLabel);
|
||||||
|
|||||||
Reference in New Issue
Block a user