From 7bbba8c527f4ba44427ee481d2a7b46a42f61634 Mon Sep 17 00:00:00 2001 From: Eddasol Date: Fri, 22 Mar 2024 13:00:15 +0100 Subject: [PATCH] Filter out deprecated robots --- frontend/src/api/ApiCaller.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/ApiCaller.tsx b/frontend/src/api/ApiCaller.tsx index 561810a17..16a2f4c76 100644 --- a/frontend/src/api/ApiCaller.tsx +++ b/frontend/src/api/ApiCaller.tsx @@ -134,7 +134,7 @@ export class BackendAPICaller { static async getEnabledRobots(): Promise { const path: string = 'robots' const result = await BackendAPICaller.GET(path).catch(BackendAPICaller.handleError('GET', path)) - return result.content.filter((robot) => robot.isarConnected) + return result.content.filter((robot) => !robot.deprecated) } static async getRobotById(robotId: string): Promise {