Skip to content

Commit

Permalink
Merge pull request #679 from 3flex/patch-2
Browse files Browse the repository at this point in the history
Fix new prefer-nullish-coalescing issue from ts eslint v8.13
  • Loading branch information
nielsvanvelzen authored Nov 6, 2024
2 parents aa92991 + 0f1e735 commit 2990a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/fetchhelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export async function ajax(request: any): Promise<Response | string> {
return response.json();
} else if (
request.dataType === 'text' ||
(response.headers.get('Content-Type') || '')
(response.headers.get('Content-Type') ?? '')
.toLowerCase()
.startsWith('text/')
) {
Expand Down

0 comments on commit 2990a56

Please sign in to comment.