Skip to content

Commit

Permalink
[DataGrid] Rename global to globalScope due to Jest issue (#10470)
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk authored Sep 25, 2023
1 parent 0ec6119 commit 4f85b7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
} from '../columns';

// Fixes https://github.com/mui/mui-x/issues/10056
const global = (typeof window === 'undefined' ? globalThis : window) as any;
const evalCode = global[atob('ZXZhbA==')] as <T>(source: string) => T;
const globalScope = (typeof window === 'undefined' ? globalThis : window) as any;
const evalCode = globalScope[atob('ZXZhbA==')] as <T>(source: string) => T;

let hasEval: boolean;
try {
Expand Down

0 comments on commit 4f85b7f

Please sign in to comment.