We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81885c4 commit 160adecCopy full SHA for 160adec
src/plugins/drivelistmanager.tsx
@@ -68,7 +68,10 @@ export function DriveInputComponent({
68
<input
69
type="checkbox"
70
checked={isPublic}
71
- onChange={event => setIsPublic(event.target.checked)}
+ onChange={event => {
72
+ setIsPublic(event.target.checked);
73
+ setRegion('');
74
+ }}
75
/>
76
{!isPublic && (
77
@@ -213,7 +216,7 @@ export function DriveListManagerComponent({ model }: IProps) {
213
216
// Check if user has access to drive.
214
217
const result = await mountDrive(publicDrive, {
215
218
provider: 's3',
- location: isPublic ? '' : driveRegion
219
+ location: driveRegion
220
});
221
if (result && result.error) {
222
// Show error in case of failure.
0 commit comments