Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: use orignal kpsVersion when the updatedProject value is undefined

phamhieu755d4cbb57b8
diff --git a/studio/stores/app/AppStore.ts b/studio/stores/app/AppStore.ts
index c631b88063d..17c22e03245 100644
--- a/studio/stores/app/AppStore.ts
+++ b/studio/stores/app/AppStore.ts
@@ -44,7 +44,7 @@ export default class AppStore implements IAppStore {
? project.services[0]?.infrastructure[0]?.app_versions?.version
: undefined
const clone = cloneDeep(this.projects.data[project.id])
- clone.kpsVersion = kpsVersion
+ clone.kpsVersion = kpsVersion ?? clone.kpsVersion
clone.name = project.name
clone.status = project.status
this.projects.data[project.id] = clone