[deploy] Check for snackbar (#8783)
This commit is contained in:
parent
ded5e245fd
commit
e9a60d9f77
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ import { Snackbar, addSnackbarItem } from '../Snackbar';
|
|||
// The Snackbar for the article page
|
||||
const snackZone = document.getElementById('snack-zone');
|
||||
|
||||
render(<Snackbar lifespan="3" />, snackZone);
|
||||
if (snackZone) {
|
||||
render(<Snackbar lifespan="3" />, snackZone);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
top.addSnackbarItem = addSnackbarItem;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue