Skip to content

Commit e7fa6d9

Browse files
Update packages/compass-schema/src/components/export-schema-modal.tsx
Co-authored-by: Sergey Petushkov <[email protected]>
1 parent 3ab1286 commit e7fa6d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/compass-schema/src/components/export-schema-modal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,17 @@ const ExportSchemaModal: React.FunctionComponent<{
190190
<Button onClick={onClose} variant="default">
191191
Cancel
192192
</Button>
193-
<Link download={filename} href={downloadUrl} onClick={onExportedSchema}>
194193
<Button
195194
variant="primary"
196195
isLoading={!downloadUrl}
197196
loadingIndicator={<SpinLoader />}
198197
disabled={!exportedSchema}
198+
download={filename}
199+
href={downloadUrl}
200+
onClick={onExportedSchema}
199201
>
200202
Export
201203
</Button>
202-
</Link>
203204
</ModalFooter>
204205
</Modal>
205206
);

0 commit comments

Comments
 (0)