There was an error while loading. Please reload this page.
1 parent 958a352 commit f15428cCopy full SHA for f15428c
1 file changed
apps/desktop/src/routes/_protected/-components/connections-list.tsx
@@ -50,7 +50,7 @@ function ConnectionCard({
50
onSuccess: (data) => {
51
const version = data[0]?.version
52
53
- if (version) {
+ if (version && version !== connection.version) {
54
connectionsCollection.update([connection.id], (drafts) => {
55
const draft = drafts[0]
56
@@ -60,6 +60,9 @@ function ConnectionCard({
60
})
61
toast.success('Database version updated')
62
}
63
+ else if (version === connection.version) {
64
+ toast.success('Database version is already up to date')
65
+ }
66
},
67
onError: () => {
68
toast.error('Failed to update database version')
0 commit comments