@@ -11,7 +11,7 @@ import {
11
11
} from ' https://cardstack.com/base/card-api' ;
12
12
13
13
import type { LooseSingleCardDocument } from ' @cardstack/runtime-common' ;
14
- import { getCards , Query } from ' @cardstack/runtime-common' ;
14
+ import { Query } from ' @cardstack/runtime-common' ;
15
15
import { restartableTask } from ' ember-concurrency' ;
16
16
17
17
import { Address as AddressField } from ' ../fields/address' ;
@@ -144,15 +144,17 @@ class IsolatedTemplate extends Component<typeof Account> {
144
144
};
145
145
}
146
146
147
- deals = getCards (
147
+ deals = this .args .context ?.getCards (
148
+ this ,
148
149
() => this .dealQuery ,
149
150
() => this .realmHrefs ,
150
151
{
151
152
isLive: true ,
152
153
},
153
154
);
154
155
155
- activeTasks = getCards (
156
+ activeTasks = this .args .context ?.getCards (
157
+ this ,
156
158
() => this .activeTasksQuery ,
157
159
() => this .realmHrefs ,
158
160
{
@@ -279,7 +281,8 @@ class IsolatedTemplate extends Component<typeof Account> {
279
281
};
280
282
}
281
283
282
- lifetimeValueDeals = getCards (
284
+ lifetimeValueDeals = this .args .context ?.getCards (
285
+ this ,
283
286
() => this .lifetimeValueQuery ,
284
287
() => this .realmHrefs ,
285
288
{
@@ -711,15 +714,17 @@ class EmbeddedTemplate extends Component<typeof Account> {
711
714
};
712
715
}
713
716
714
- deals = getCards (
717
+ deals = this .args .context ?.getCards (
718
+ this ,
715
719
() => this .dealQuery ,
716
720
() => this .realmHrefs ,
717
721
{
718
722
isLive: true ,
719
723
},
720
724
);
721
725
722
- activeTasks = getCards (
726
+ activeTasks = this .args .context ?.getCards (
727
+ this ,
723
728
() => this .activeTasksQuery ,
724
729
() => this .realmHrefs ,
725
730
{
@@ -795,7 +800,8 @@ class EmbeddedTemplate extends Component<typeof Account> {
795
800
};
796
801
}
797
802
798
- lifetimeValueDeals = getCards (
803
+ lifetimeValueDeals = this .args .context ?.getCards (
804
+ this ,
799
805
() => this .lifetimeValueQuery ,
800
806
() => this .realmHrefs ,
801
807
{
0 commit comments