fix: reloadThirdDataSource

This commit is contained in:
katherinehhh 2024-01-26 21:53:16 +08:00
parent 7458ca82f1
commit 805a91f226

View File

@ -325,7 +325,7 @@ export class CollectionManagerV2 {
this.initDataSourceMap();
data.forEach(({ key, collections, ...others }) => {
this.dataSourceMap[key] = { ...others, name };
this.dataSourceMap[key] = { ...others, key };
this.setCollections(collections, { dataSource: key });
this.reloadCallbacks[key]?.forEach((cb) => cb(collections));
});