fix eslint errors
This commit is contained in:
1 parent
a732ec0640
commit
86a02a945b
12 files changed
+89
-89
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ export interface IResponseItems<T> {
|
||||
export function wrapInitialProps(fn: (ctx: NextPageContext) => void) {
|
||||
return async (ctx: NextPageContext) => {
|
||||
if (process.env.NODE_ENV === 'production' && process.browser) {
|
||||
return window['__NEXT_DATA__'].props.pageProps;
|
||||
return window['__NEXT_DATA__'].props.pageProps
|
||||
}
|
||||
|
||||
return fn(ctx)
|
||||
|
||||
Reference in new issue
Block a user