Skip to content

Commit b577ee5

Browse files
authored
fix: reuse table schema for select template for current table (#2127)
1 parent b401559 commit b577ee5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/store/reducers/overview/overview.ts

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export const overviewApi = api.injectEndpoints({
5050
return {error};
5151
}
5252
},
53+
serializeQueryArgs: ({queryArgs}) => {
54+
const {database, path} = queryArgs;
55+
return {database, path};
56+
},
5357
keepUnusedDataFor: 0,
5458
providesTags: ['All', 'SchemaTree'],
5559
}),

src/store/reducers/viewSchema/viewSchema.ts

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export const viewSchemaApi = api.injectEndpoints({
3737
return {error: error};
3838
}
3939
},
40+
serializeQueryArgs: ({queryArgs}) => {
41+
const {database, path} = queryArgs;
42+
return {database, path};
43+
},
4044
providesTags: ['All', 'SchemaTree'],
4145
}),
4246
}),

0 commit comments

Comments
 (0)