Commit c772abc
Fix: Handle empty string initialization for API key expire parameter
- Updated initialization logic to handle both null and invalid date values (including empty strings)
- Removed the check for expirationSelect !== null to allow proper initialization when "Never" is selected
- Added isValidDate check before ISO date conversion to prevent converting invalid dates to 'n/a'
- This fixes the issue where API keys couldn't be created with "Never" expiration when the parent component initializes expire as an empty string
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>1 parent 74452a4 commit c772abc
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
| 137 | + | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments