Skip to content

Commit da92052

Browse files
bugfix for wrongly used outdated method onAuthUpdate
1 parent 48631da commit da92052

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/ui/components/UrlExportSettings.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ export const UrlExportSettings = () => {
7777
}
7878
}
7979

80-
function onAuthUpdate (value) {
81-
updateSettings(draft => { draft.authType = value })
82-
if (this.value === config.key.authType.gitlabToken) {
83-
this.form.Ref.style.visibility = 'visible'
84-
} else {
85-
this.form.other.style.visibility = 'hidden'
86-
}
87-
}
88-
8980
return (
9081
<form onSubmit={handleFormSubmit} className={style}>
9182
<Title size='xlarge' weight='bold'>URL Export settings</Title>
@@ -94,7 +85,7 @@ export const UrlExportSettings = () => {
9485
label='Compress JSON output'
9586
type='switch'
9687
checked={settings.urlJsonCompression}
97-
onChange={(value) => onAuthUpdate(value)}
88+
onChange={(value) => updateSettings(draft => { draft.urlJsonCompression = value })}
9889
/>
9990
<Info width={240} label='Compression removes line breaks and whitespace from the json string' />
10091
</Row>

0 commit comments

Comments
 (0)