Skip to content

Commit aa24084

Browse files
committed
oops
1 parent a4344d6 commit aa24084

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/compass-schema/src/stores/schema-export-reducer.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const downloadSchema = (): SchemaThunkAction<void> => {
159159
return (dispatch, getState, { track, connectionInfoRef }) => {
160160
const {
161161
schemaExport: { exportedSchema, exportFormat, filename },
162+
schemaAnalysis: { schema },
162163
} = getState();
163164
if (!exportedSchema) return;
164165
try {
@@ -175,7 +176,13 @@ export const downloadSchema = (): SchemaThunkAction<void> => {
175176
window.URL.revokeObjectURL(url);
176177
link.remove();
177178
}, 0);
178-
dispatch(trackSchemaExported);
179+
_trackSchemaExported({
180+
track,
181+
schema,
182+
format: exportFormat,
183+
connectionInfoRef,
184+
source: 'schema_tab',
185+
});
179186
return dispatch({
180187
type: SchemaExportActions.closeExportSchema,
181188
});

0 commit comments

Comments
 (0)