Skip to content

Commit

Permalink
Drop unnecessary selector
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarvelle committed May 16, 2024
1 parent 001a489 commit 34942ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const doFetch = (name: string, element: ApiTranslateType): Promise<ResponseType>
.then(async (res) => {
const response = load(res);
response("ndlaskip").each((_, el) => {
response(el).contents().unwrap();
response(el).unwrap();
});
const strippedResponse = response("body").unwrap().html() ?? "";
return { key: name, value: strippedResponse };
Expand Down

0 comments on commit 34942ea

Please # to comment.