Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
fix(PostForm): Remove error when no image
Browse files Browse the repository at this point in the history
  • Loading branch information
moverval committed Jan 3, 2024
1 parent 7e7f330 commit b8043be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/components/Post/Form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ class _PostFormState extends State<PostForm> {

// fill image
ImageManager.getImageFileByKey(widget.initialPost!.imageId).then((image) {
setState(() {
_image = image;
});
if (widget.initialPost!.imageId != "") {
setState(() {
_image = image;
});
}
});

// Bar name
Expand Down

0 comments on commit b8043be

Please sign in to comment.