fix: remove redundant console log in handleLoadExample function
parent
5d741bfb5e
commit
084ad5cfb9
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue