From bb227ab73f4cc21bb341af283147b77dd0ee3ac2 Mon Sep 17 00:00:00 2001 From: ObservedObserver <270001151@qq.com> Date: Fri, 20 Oct 2023 20:31:02 -0700 Subject: [PATCH] feat: remove dist info when export data metas --- packages/rath-client/src/store/dataSourceStore.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/rath-client/src/store/dataSourceStore.ts b/packages/rath-client/src/store/dataSourceStore.ts index c5495495..8de3e2c3 100644 --- a/packages/rath-client/src/store/dataSourceStore.ts +++ b/packages/rath-client/src/store/dataSourceStore.ts @@ -486,9 +486,10 @@ export class DataSourceStore { const { cleanedData, fieldMetas } = this; return { dataSource: cleanedData, - fields: fieldMetas.map(f => ({ - ...f - })) + fields: fieldMetas.map(f => { + const { features, distribution, ...others } = f + return others + }) } }