We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f61afab commit e235e60Copy full SHA for e235e60
src/App.tsx
@@ -15,17 +15,17 @@ function App() {
15
useState<SearchResult>(defaultSearchResult);
16
17
const handleSearch: OnSearchFn = async (wiki, pageTitle, targetText) => {
18
- const baseUrl = wiki.url.toString();
19
setSearchResult((prev) => ({
20
...prev,
21
- baseUrl,
+ wiki,
22
pageTitle,
23
targetText,
24
loading: true,
25
error: null,
26
revisionId: null,
27
}));
28
+ const baseUrl = wiki.url.toString();
29
try {
30
// First, fetch the page ID
31
const pageId = await fetchPageId(baseUrl, pageTitle);
0 commit comments