Skip to content

Commit

Permalink
fix(datasources): add the dataSourceContext for table documents
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnL17 authored and anehx committed Mar 22, 2023
1 parent b6f3812 commit 3f588ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/form/addon/lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export default class Document extends Base {
super({ raw, ...args });

this.parentDocument = parentDocument;
this.dataSourceContext = dataSourceContext;
this.dataSourceContext =
dataSourceContext ?? parentDocument?.dataSourceContext;

this.pushIntoStore();

Expand Down

0 comments on commit 3f588ba

Please sign in to comment.