mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 21:35:42 +00:00 
			
		
		
		
	Prevent notification requests if server is not connected
This commit is contained in:
		| @@ -180,6 +180,10 @@ class _InvenTreeHomePageState extends State<InvenTreeHomePage> { | ||||
|    */ | ||||
|   Future<void> _refreshNotifications() async { | ||||
|  | ||||
|     if (!InvenTreeAPI().isConnected()) { | ||||
|       return; | ||||
|     } | ||||
|  | ||||
|     final notifications = await InvenTreeNotification().list(); | ||||
|  | ||||
|     setState(() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user