Skip to content

Commit 25160a0

Browse files
committed
Remove console logs
1 parent 48ddb89 commit 25160a0

File tree

5 files changed

+1
-6
lines changed

5 files changed

+1
-6
lines changed

src/datasource.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
7878

7979
return frame;
8080
})
81-
.catch((error) => {
82-
console.log('ERROR (useGetChartData): ', error);
81+
.catch(() => {
8382
return [];
8483
});
8584
}

src/shared/hooks/useFetchContexts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export const useFetchContexts = (baseUrl: string) => {
3838
setContexts(result.map((c) => ({ label: c, value: c })));
3939
} catch (error) {
4040
setIsError(true);
41-
console.log('ERROR (useFetchContexts): ', error);
4241
}
4342
},
4443
[baseUrl]

src/shared/hooks/useFetchNodes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export const useFetchNodes = (baseUrl: string) => {
3737
const result = await getNodes(spaceId, roomId, baseUrl);
3838
setNodes(result);
3939
} catch (error) {
40-
console.log('ERROR (useFetchNodes): ', error);
4140
setIsError(true);
4241
}
4342
},

src/shared/hooks/useFetchRooms.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const useFetchRooms = (baseUrl: string) => {
1919
const result = await getRooms(spaceId, baseUrl);
2020
setRooms(result?.map((r: any) => ({ label: r.name, value: r.id })));
2121
} catch (error) {
22-
console.log('ERROR (useFetchRooms): ', error);
2322
setIsError(true);
2423
}
2524
},

src/shared/hooks/useFetchSpaces.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const useFetchSpaces = (baseUrl: string) => {
2727

2828
fetchData();
2929
} catch (error) {
30-
console.log('ERROR (useFetchSpaces): ', error);
3130
setIsError(true);
3231
}
3332
}, [baseUrl]);

0 commit comments

Comments
 (0)