Skip to content

Commit 355959b

Browse files
committed
remove unnecesary snowflake null auth method check
1 parent 9dcb6cf commit 355959b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webviews/webview-side/integrations/SnowflakeForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ function getInitialValues(existingConfig: SnowflakeIntegrationConfig | null) {
3131
}
3232

3333
// Type narrowing based on authMethod
34+
// Note: existingConfig can have authMethod === null (legacy configs from backend)
3435
if (existingConfig.authMethod === null || existingConfig.authMethod === SnowflakeAuthMethods.PASSWORD) {
3536
return {
3637
username: existingConfig.username || '',
@@ -219,7 +220,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
219220
</div>
220221

221222
{!isUnsupported &&
222-
(authMethod === null || authMethod === SnowflakeAuthMethods.PASSWORD ? (
223+
(authMethod === SnowflakeAuthMethods.PASSWORD ? (
223224
<>
224225
<div className="form-group">
225226
<label htmlFor="username">

0 commit comments

Comments
 (0)