Skip to content

Commit

Permalink
better setProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderDake committed Jul 14, 2023
1 parent 80b699d commit cc10af9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,7 @@ abstract class LayoutExplorerWidgetState<W extends LayoutExplorerWidget,
if (shouldFetch) {
_dirty = false;
final newSelection = await fetchLayoutProperties();
if (newSelection != null) {
_setProperties(newSelection);
} else {
_setProperties(null);
}
_setProperties(newSelection);
} else {
updateHighlighted(_properties);
}
Expand Down

0 comments on commit cc10af9

Please sign in to comment.