Skip to content

Commit

Permalink
[TM-1402] Don't try to set the debug method in test envs.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Dec 13, 2024
1 parent 5740c64 commit 64584f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const makeStore = () => {

ApiSlice.redux = store;

if (typeof window !== "undefined") {
if (typeof window !== "undefined" && (window as any).terramatch != null) {
// Make some things available to the browser console for easy debugging.
(window as any).terramatch.getApiState = () => store.getState();
}
Expand Down

0 comments on commit 64584f4

Please sign in to comment.