mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-16 06:20:18 +00:00
Fix lit warnings (#9204)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -50,6 +50,12 @@ export const showDialog = async (
|
||||
) => {
|
||||
if (!(dialogTag in LOADED)) {
|
||||
if (!dialogImport) {
|
||||
if (__DEV__) {
|
||||
// eslint-disable-next-line
|
||||
console.warn(
|
||||
"Asked to show dialog that's not loaded and can't be imported"
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
LOADED[dialogTag] = dialogImport().then(() => {
|
||||
|
||||
Reference in New Issue
Block a user