Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08b814f

Browse files
maxisameneajaho
authored andcommitted
fix(isr): fix eslint issue
1 parent 9710d59 commit 08b814f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libs/isr/server/src/isr-handler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,8 @@ export class ISRHandler {
247247
const patchedModifyFn: ModifyHtmlCallbackFn = (
248248
req: Request,
249249
html: string,
250-
validate?: number | null,
251250
) => {
252-
return config!.modifyGeneratedHtml!(req, html);
251+
return config.modifyGeneratedHtml?.(req, html) || html;
253252
};
254253
this.isrConfig['modifyGeneratedHtml'] = patchedModifyFn;
255254
}

0 commit comments

Comments
 (0)