Skip to content

Commit

Permalink
Fixed ref name in embeddable.inject
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Oct 25, 2021
1 parent 5f03272 commit 4724744
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export function embeddableFunctionFactory({

inject(state, references) {
const input = decode(state.config[0] as string);
const savedObjectReference = references.find((ref) => ref.name === 'embeddable.id');
const savedObjectReference = references.find(
(ref) => ref.name === 'embeddable.savedObjectId'
);

// injects saved object id for by-references embeddable
if (savedObjectReference) {
Expand Down

0 comments on commit 4724744

Please sign in to comment.