Skip to content

Commit

Permalink
0.0.414
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Aug 4, 2024
1 parent f43ebbd commit 958c8cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 505 deletions.
8 changes: 4 additions & 4 deletions imports/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,9 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
// @ts-ignore
return: exp?.return,
};
if (options.apply) {
if (options?.apply) {
results.originalData = results.data,
results.data = this.ml.apply(results.data, options.apply).data as L[];
results.data = this.minilinks.apply(results.data, options.apply).data as L[];
}
return results;
} catch (e) {
Expand Down Expand Up @@ -1173,9 +1173,9 @@ export class DeepClient<L extends Link<Id> = Link<Id>> implements DeepClientInst
// @ts-ignore
return: exp?.return,
};
if (options.apply) {
if (options?.apply) {
results.originalData = results.data,
results.data = this.ml.apply(results.data, options.apply).data as L[];
results.data = this.minilinks.apply(results.data, options.apply).data as L[];
}
observer.next(results);
},
Expand Down
Loading

0 comments on commit 958c8cd

Please sign in to comment.