Skip to content

Commit 7b9a20d

Browse files
committed
chore: charts from rpc collections now available
1 parent d344aa1 commit 7b9a20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasource_toolkit/forestadmin/datasource_toolkit/decorators/chart/chart_collection_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def render_chart(self, caller: User, name: str, record_id: List) -> Chart:
3737
return await self.child_collection.render_chart(caller, name, record_id)
3838

3939
def _refine_schema(self, sub_schema: CollectionSchema) -> CollectionSchema:
40-
charts = {}
40+
charts = {**sub_schema["charts"]}
4141
for name, chart in self._charts.items():
4242
charts[name] = chart
4343

0 commit comments

Comments
 (0)