fix: disable eslint, refactor function
This commit is contained in:
parent
95117afeea
commit
ff09d8e104
|
@ -109,13 +109,12 @@ const EnterKeyFunctionSetting = () => {
|
|||
initialItem={initialSetting}
|
||||
group={SettingsKey.hasShiftSendEnabled} // make sure to define this key in your SettingsKey enum
|
||||
items={items}
|
||||
onClick={(selectedRadioValue: string | boolean) => {
|
||||
async function updateSetting() {
|
||||
await window.setSettingValue(SettingsKey.hasShiftSendEnabled, selectedRadioValue);
|
||||
forceUpdate();
|
||||
}
|
||||
updateSetting().catch(error => window.log.error('Error updating setting:', error));
|
||||
/* eslint-disable @typescript-eslint/no-misused-promises */
|
||||
onClick={async (selectedRadioValue: string | boolean) => {
|
||||
await window.setSettingValue(SettingsKey.hasShiftSendEnabled, selectedRadioValue);
|
||||
forceUpdate();
|
||||
}}
|
||||
/* eslint-enable @typescript-eslint/no-misused-promises */
|
||||
/>
|
||||
</SessionSettingsItemWrapper>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue