fix: Use Array.from when spreading over set so that typescript transpiles correctly in the umd build (#3165)

* fix: Use Array.from when spreading over set so that typescript transpiles correctly in the umd build

* patch version

* fix

* update changelog

* tweak
This commit is contained in:
Aakansha Doshi 2021-03-03 19:27:15 +05:30 committed by GitHub
parent c77c9ce65a
commit 3d1cbf444d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 4 deletions

View file

@ -182,9 +182,9 @@ const bindLinearElement = (
} as PointBinding,
});
mutateElement(hoveredElement, {
boundElementIds: [
...new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]),
],
boundElementIds: Array.from(
new Set([...(hoveredElement.boundElementIds ?? []), linearElement.id]),
),
});
};