Skip to content

Commit

Permalink
prevent rendering if data dependencies are not ready (#5174)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Oct 17, 2024
1 parent 08310bf commit a52594a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ const resetZoom = async () => {
};
async function renderGraph() {
// Sanity guard
if (mmt.value.templates.length === 0) return;
renderer = getModelRenderer(
mmt.value,
graphElement.value as HTMLDivElement,
Expand Down

0 comments on commit a52594a

Please sign in to comment.