mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 07:15:43 -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() ?? {},
|
||||
..._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 createdLabel = await widget.submitButtonConfig.onSubmit(parsed);
|
||||
Navigator.pop(context, createdLabel);
|
||||
|
||||
Reference in New Issue
Block a user