diff --git a/src/server/components/charts-engine/components/processor/index.ts b/src/server/components/charts-engine/components/processor/index.ts index 7b404be2ef..5c703834d1 100644 --- a/src/server/components/charts-engine/components/processor/index.ts +++ b/src/server/components/charts-engine/components/processor/index.ts @@ -228,7 +228,7 @@ export class Processor { const onCodeExecuted = chartsEngine.telemetryCallbacks.onCodeExecuted || (() => {}); const onTabsExecuted = chartsEngine.telemetryCallbacks.onTabsExecuted || (() => {}); - function injectConfigAndParams({target}: {target: Record}) { + function injectConfigAndParams({target}: {target: ProcessorSuccessResponse}) { let responseConfig; const useChartsEngineResponseConfig = Boolean( isEnabledServerFeature(ctx, Feature.UseChartsEngineResponseConfig), @@ -727,7 +727,7 @@ export class Processor { ctx.log('EditorEngine::JS', {duration: getDuration(hrStart)}); - processedData = jsTabResults.exports as Record; + processedData = jsTabResults.exports; logs.JavaScript = jsTabResults.logs; const jsError = jsTabResults.runtimeMetadata.error; @@ -802,7 +802,7 @@ export class Processor { injectLogs({target: result}); if (!uiOnly && jsTabResults) { - result.data = processedData; + result.data = processedData as ProcessorSuccessResponse['data']; let resultConfig = merge( {}, userConfig,