Skip to content

Commit 8c37446

Browse files
committed
Format files
1 parent 1e9d0cc commit 8c37446

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.prettierrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
...require("./node_modules/@grafana/toolkit/src/config/prettier.plugin.config.json"),
2+
...require('./node_modules/@grafana/toolkit/src/config/prettier.plugin.config.json'),
33
};

src/shared/hooks/useFetchContexts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Get } from 'shared/utils/request';
44

55
export const getContexts = async (spaceId: string, roomId: string, baseUrl: string) => {
66
const response = await Get({ path: `/v3/spaces/${spaceId}/rooms/${roomId}/contexts`, baseUrl });
7-
const { contexts = {} } = response || {}
7+
const { contexts = {} } = response || {};
88
return Object.keys(contexts) as string[];
99
};
1010

src/shared/hooks/useFetchNodes.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ import React from 'react';
22
import { Post } from 'shared/utils/request';
33

44
export const getNodes = async (spaceId: string, roomId: string, baseUrl: string) => {
5-
const response = await Post({ path: `/v3/spaces/${spaceId}/rooms/${roomId}/nodes`, baseUrl, data: { scope: {
6-
nodes: [],
7-
} } });
5+
const response = await Post({
6+
path: `/v3/spaces/${spaceId}/rooms/${roomId}/nodes`,
7+
baseUrl,
8+
data: {
9+
scope: {
10+
nodes: [],
11+
},
12+
},
13+
});
814
return response?.nodes;
915
};
1016

0 commit comments

Comments
 (0)