Skip to content

Commit d6ce98e

Browse files
(v2.3) unwanted var
1 parent 761dc7c commit d6ce98e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ui/src/components/App.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export default function App() {
1717
const [host, setHost] = useState<string>('');
1818
const [sendingRequest, setSendingRequest] = useState(false);
1919
const [error, setError] = useState<string | null>(null);
20-
const [theme] = useLocalStorage('theme', '');
2120
const [groupby] = useLocalStorage('groupby', 'default');
2221
const [sort] = useLocalStorage('sort', 'default');
2322
const [showGet] = useLocalStorage('showGet', 'true');
@@ -32,8 +31,8 @@ export default function App() {
3231
threshold: 0.3
3332
};
3433

35-
const getUrl = (url: string, showGet: string, showPost: string, showDelete: string, showPut: string, showPatch: string, showHead: string, theme: string, sort: string, groupby: string) => {
36-
return `${url}?json=true&showGet=${showGet}&showPost=${showPost}&showDelete=${showDelete}&showPut=${showPut}&showPatch=${showPatch}&showHead=${showHead}&theme=${theme}&sort=${sort}&groupby=${groupby}`
34+
const getUrl = (url: string, showGet: string, showPost: string, showDelete: string, showPut: string, showPatch: string, showHead: string, sort: string, groupby: string) => {
35+
return `${url}?json=true&showGet=${showGet}&showPost=${showPost}&showDelete=${showDelete}&showPut=${showPut}&showPatch=${showPatch}&showHead=${showHead}&sort=${sort}&groupby=${groupby}`
3736
}
3837

3938
useEffect(() => {
@@ -55,7 +54,7 @@ export default function App() {
5554
}
5655
setApiURL(url)
5756

58-
const api = getUrl(url, showGet, showPost, showDelete, showPut, showPatch, showHead, theme, sort, groupby)
57+
const api = getUrl(url, showGet, showPost, showDelete, showPut, showPatch, showHead, sort, groupby)
5958
generateDocs(api)
6059
}, [])
6160

@@ -100,7 +99,7 @@ export default function App() {
10099
showHead: string,
101100
sort: string,
102101
groupby: string) => {
103-
const url = getUrl(apiURL, showGet, showPost, showDelete, showPut, showPatch, showHead, theme, sort, groupby)
102+
const url = getUrl(apiURL, showGet, showPost, showDelete, showPut, showPatch, showHead, sort, groupby)
104103
generateDocs(url)
105104
}
106105
return (

0 commit comments

Comments
 (0)