Skip to content

Commit

Permalink
Fix Error Handling for Most Searched Rooms (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber authored Sep 17, 2024
1 parent bea47b6 commit 14dec55
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import 'package:campus_flutter/base/enums/campus.dart';
import 'package:campus_flutter/base/enums/error_handling_view_type.dart';
import 'package:campus_flutter/base/errorHandling/error_handling_router.dart';
import 'package:campus_flutter/base/util/delayed_loading_indicator.dart';
import 'package:campus_flutter/base/util/padded_divider.dart';
import 'package:campus_flutter/base/routing/routes.dart';
Expand Down Expand Up @@ -62,7 +64,12 @@ class CampusMostSearchedView extends ConsumerWidget {
);
}
} else if (snapshot.hasError) {
return const Text("Error");
return ListTile(
title: ErrorHandlingRouter(
error: snapshot.error!,
errorHandlingViewType: ErrorHandlingViewType.descriptionOnly,
),
);
} else {
return Padding(
padding: EdgeInsets.all(context.padding),
Expand Down

0 comments on commit 14dec55

Please sign in to comment.