Commit 9e014dc1 authored by Mike Greiling's avatar Mike Greiling

Utilize optional chaining

parent 99c0ba60
......@@ -62,12 +62,12 @@ function disableJQueryAnimations() {
}
// Disable jQuery animations
if (gon && gon.disable_animations) {
if (gon?.disable_animations) {
disableJQueryAnimations();
}
// inject test utilities if necessary
if (process.env.NODE_ENV !== 'production' && gon && gon.test_env) {
if (process.env.NODE_ENV !== 'production' && gon?.test_env) {
disableJQueryAnimations();
import(/* webpackMode: "eager" */ './test_utils/'); // eslint-disable-line no-unused-expressions
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment