Skip to content

Commit 9bb3f8a

Browse files
committed
Rename staticMethod to key
1 parent 5e73f94 commit 9bb3f8a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/next.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ export function createNextDsfrIntegrationApi(params: Params): NextDsfrIntegratio
201201
);
202202
}
203203

204-
Object.keys(App).forEach(
205-
staticMethod => ((AppWithDsfr as any)[staticMethod] = (App as any)[staticMethod])
206-
);
204+
Object.keys(App).forEach(key => ((AppWithDsfr as any)[key] = (App as any)[key]));
207205

208206
if (doPersistDarkModePreferenceWithCookie) {
209207
const super_getInitialProps =

0 commit comments

Comments
 (0)