diff --git a/frontend/src/lib/components/apps/components/helpers/eval.ts b/frontend/src/lib/components/apps/components/helpers/eval.ts index 20689326c9..eaaf178c0d 100644 --- a/frontend/src/lib/components/apps/components/helpers/eval.ts +++ b/frontend/src/lib/components/apps/components/helpers/eval.ts @@ -140,6 +140,7 @@ export async function eval_like( invalidate?: (key: string, error: string) => void validateAll?: () => void clearFiles?: () => void + showToast?: (message: string, error?: boolean) => void } >, worldStore: World | undefined, @@ -183,6 +184,13 @@ export async function eval_like( controlComponents[id]?.setTab?.(index) }, (id) => { + // Check for the existence of sub-runnables: + // For example a_count for Database Studio + + if (runnableComponents[`${id}_count`]?.cb) { + runnableComponents[`${id}_count`]?.cb?.forEach((f) => f()) + } + runnableComponents[id]?.cb?.forEach((f) => f()) }, (id) => { diff --git a/frontend/src/lib/components/apps/editor/componentsPanel/componentControlUtils.ts b/frontend/src/lib/components/apps/editor/componentsPanel/componentControlUtils.ts index a4470e2e82..087146d7e2 100644 --- a/frontend/src/lib/components/apps/editor/componentsPanel/componentControlUtils.ts +++ b/frontend/src/lib/components/apps/editor/componentsPanel/componentControlUtils.ts @@ -126,6 +126,8 @@ export function getComponentControl(type: keyof typeof components): Array void validateAll?: () => void clearFiles?: () => void + showToast?: (message: string, error?: boolean) => void } > >