[FIX] Error Stream in constructor.

This commit is contained in:
2026-01-24 08:17:39 +02:00
parent f50d1d6576
commit c0e6083245

View File

@@ -74,7 +74,9 @@ class _AstromicCustomFieldState<T> extends State<AstromicCustomField<T>> {
_labelNode = widget.formController.node<String>('${widget.formID}_label', initialValue: initialLabel); _labelNode = widget.formController.node<String>('${widget.formID}_label', initialValue: initialLabel);
_dataNode.addListener(_syncDataToLabel); _dataNode.addListener(_syncDataToLabel);
widget.formController.errorStream.listen(_handleApiErrors); if (widget.formController.errorStream != null) {
widget.formController.errorStream!.listen(_handleApiErrors);
}
} }
/// Synchronizes the string display node whenever the raw data value changes. /// Synchronizes the string display node whenever the raw data value changes.