Skip to content

Commit 1319aaf

Browse files
UI - Loader added
1 parent 338a31f commit 1319aaf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/pages/draft/Draft.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ const Draft = (): JSX.Element => {
6262
// Fetch function with type annotations
6363
async function fetchAllSectionContent(req: RequestObject[]): Promise<void> {
6464
try {
65-
const response = await sectionGenerate(req);
66-
const responseBody = await response.json();
6765
setDraftLoading(true);
68-
66+
const response = await sectionGenerate(req);
67+
const responseBody = await response.json();
6968
// Map the data
7069
const sections = req.map(reqSection => {
7170
const matchedResponse = responseBody.section_content.find(

0 commit comments

Comments
 (0)