Fixed issue where element didn't exist in the config Stimulus controller. (#15408)

This commit is contained in:
Nick Taylor 2021-11-17 15:25:17 -05:00 committed by GitHub
parent 4d3237ecfb
commit 52ec967de5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ export default class ConfigController extends Controller {
const element = document.querySelector(
`${window.location.hash} .card-body`,
);
element.classList.add('show');
element?.classList.add('show');
}
// GENERAL FUNCTIONS START