Remove cancelling null subscription

This commit is contained in:
Yegor Vialov
2018-10-21 14:48:25 +03:00
parent 9ad6d92ccd
commit 36fa5a50c4

View File

@ -17,7 +17,6 @@ class _EntityViewPageState extends State<EntityViewPage> {
@override
void initState() {
super.initState();
if (_stateSubscription != null) _stateSubscription.cancel();
_stateSubscription = eventBus.on<StateChangedEvent>().listen((event) {
if (event.entityId == widget.entity.entityId) {
setState(() {});