Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Commit 74452a4

Browse files
Copilotstnguyen90
andcommitted
Fix: Preserve null value for expire parameter in ExpirationInput
- Fixed reactive block in expirationInput.svelte to check for null before converting to ISO date - When "Never" is selected, value now remains null instead of being converted to '1970-01-01' - This allows the API to correctly handle null expiration dates for API keys and file tokens Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
1 parent 349d75c commit 74452a4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/lib/components/expirationInput.svelte‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@
134134
value = expirationSelect === 'custom' ? expirationCustom : expirationSelect;
135135
}
136136
137-
value = toLocaleDateISO(new Date(value).getTime());
137+
// Only convert to ISO date if value is not null
138+
if (value !== null) {
139+
value = toLocaleDateISO(new Date(value).getTime());
140+
}
138141
}
139142
140143
$: helper =

0 commit comments

Comments
 (0)