Skip to content

Commit

Permalink
fix: dart build errors (viamrobotics#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
g0rdan authored Jun 5, 2024
1 parent 9438dba commit 2311c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/viam_example_app/lib/location_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class _LocationScreenState extends State<LocationScreen> {
Future<void> _initState() async {
// Using the authenticated [Viam] the received as a parameter,
// we can obtain a list of robots within this location.
final robots = await widget._viam.appClient.listRobots(widget.location);
final robots = await widget._viam.appClient.listRobots(widget.location.id);
setState(() {
// Once we have the list of robots, we can set the state.
this.robots = robots;
Expand Down
2 changes: 1 addition & 1 deletion example/viam_example_app/lib/organization_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class _OrganizationScreenState extends State<OrganizationScreen> {
Future<void> _initState() async {
// Using the authenticated [Viam] the received as a parameter,
// we can obtain a list of locations within this organization.
final locations = await widget._viam.appClient.listLocations(widget.organization);
final locations = await widget._viam.appClient.listLocations(widget.organization.id);
setState(() {
// Once we have the list of locations, we can set the state.
this.locations = locations;
Expand Down

0 comments on commit 2311c93

Please sign in to comment.