Skip to content

Commit

Permalink
Update exposes.js
Browse files Browse the repository at this point in the history
linter fix
  • Loading branch information
asgothian committed Jan 2, 2025
1 parent fe30441 commit 070b1ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,9 @@ function createFromExposes(model, def) {
getter: payload => payload.action === actionName ? true : (payload.action === releaseActionName || payload.action === releaseActionName2 ? false : undefined),
};
} else if (hasPress && hasPressRelease && actionName.includes('press')) {
let getterKey = actionName.concat('_release');
let getterKey = actionName.concat('_release');
if (expose.values.indexOf(getterKey) < 0) getterKey = actionName;
state = {
state = {
id: actionName.replace(/\*/g, ''),
prop: 'action',
name: actionName,
Expand All @@ -728,7 +728,7 @@ function createFromExposes(model, def) {
type: 'boolean',
getter: payload => payload.action === actionName ? true : undefined,
isEvent: true,
};
};
};
pushToStates(state, expose.access);
}
Expand Down

0 comments on commit 070b1ce

Please sign in to comment.