Prevent potential crash

This commit is contained in:
pythongosssss 2024-07-12 14:45:04 +01:00
parent de17d9953c
commit 7fc763ab44

View File

@ -4,6 +4,10 @@ import { $el } from "../../scripts/ui.js";
// Adds support for tooltips
function getHoveredWidget() {
if (!app) {
return;
}
const node = app.canvas.node_over;
if (!node.widgets) return;