Merge pull request #2944 from therealrinku/fix/clear-table-search

fix: clear table search query on db change
This commit is contained in:
Matthew Rathbone
2025-04-07 21:48:42 -05:00
committed by GitHub

View File

@@ -193,6 +193,7 @@ import { matches } from '@/common/transport/TransportPinnedEntity'
},
computed: {
...mapGetters(['dialectData', 'dialect']),
...mapState({currentDatabase: 'database'}),
createDisabled() {
return !!this.dialectData.disabledFeatures.createTable
},
@@ -271,6 +272,9 @@ import { matches } from '@/common/transport/TransportPinnedEntity'
}),
},
watch: {
currentDatabase(){
this.filterQuery = null
},
loadedWithPins (loaded, oldloaded) {
if (loaded && (!oldloaded)) {
this.$nextTick(() => {