fix: remove redundant console log in handleLoadExample function

pull/73/head
David Montero Crespo 2026-03-25 03:05:38 -03:00
parent 5d741bfb5e
commit 084ad5cfb9
1 changed files with 1 additions and 3 deletions

View File

@ -38,9 +38,6 @@ export const ExamplesPage: React.FC = () => {
const missing = libs.filter((l) => !installedNames.has(l.toLowerCase()));
if (missing.length === 0) return;
const handleLoadExample = (example: ExampleProject) => {
console.log('Loading example:', example.title);
trackOpenExample(example.title);
setInstalling({ total: missing.length, done: 0, current: missing[0] });
for (let i = 0; i < missing.length; i++) {
setInstalling({ total: missing.length, done: i, current: missing[i] });
@ -54,6 +51,7 @@ export const ExamplesPage: React.FC = () => {
};
const handleLoadExample = async (example: ExampleProject) => {
trackOpenExample(example.title);
// Auto-install required libraries before loading
if (example.libraries && example.libraries.length > 0) {
await ensureLibraries(example.libraries);