Skip to content

Commit

Permalink
Fixed typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Nov 3, 2024
1 parent ddab2cb commit 684626e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,7 @@ export default abstract class AdapterGeneric<
.getObject(`system.adapter.${this.props.adapterName}`)
.then(obj => {
if (obj?.common) {
// @ts-expect-error Fixed in js-controller 7
obj.common.ignoreVersion = ignoreVersion;
(obj.common as any).ignoreVersion = ignoreVersion;
this.props.context.socket
.setObject(obj._id, obj)
.catch(error => window.alert(`Cannot write object: ${error}`));
Expand Down

0 comments on commit 684626e

Please sign in to comment.