Skip to content

Commit 4942a22

Browse files
authored
fix(post-configuration-panel): fix failed to parse tags from response (#135)
1 parent f412317 commit 4942a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/post-tag.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class PostTagService {
2323
url,
2424
method,
2525
body,
26-
} = await got.get<PostTag[]>(`${globalContext.config.apiBaseUrl}/api/tags/list`);
26+
} = await got.get<PostTag[]>(`${globalContext.config.apiBaseUrl}/api/tags/list`, { responseType: 'json' });
2727
if (!isOk) throw Error(`Failed to ${method} ${url}`);
2828

2929
return Array.isArray(body)

0 commit comments

Comments
 (0)