visulate-ora2pg
visulate-ora2pg copied to clipboard
Intermittent failures in snackbar code
The showMessage method in App.vue is failing intermittently. It queries the browser DOM to get object reference for the mdl-js-snackbar element. This query sometimes fails. Added a workout that logs the message to the console:
const notification = document.querySelector(".mdl-js-snackbar");
if (notification && notification.MaterialSnackbar) {
notification.MaterialSnackbar.showSnackbar({
message: messageText,
});
} else {
console.log(messageText);
}
Need to identify root cause. The Project list component does not render correctly when this error occurs. Possibly related to delays introduced by the security code. Haven't seen this in the localhost version.