diff --git a/packages/nc-gui/components/createOrEditProject.vue b/packages/nc-gui/components/createOrEditProject.vue index 813e4255a6..922843d5a3 100644 --- a/packages/nc-gui/components/createOrEditProject.vue +++ b/packages/nc-gui/components/createOrEditProject.vue @@ -87,12 +87,8 @@ :height="20" :label="$t('placeholder.projName')" autofocus - > - - - + /> - - - - @@ -1154,7 +1147,6 @@ export default { }, selectFile(db, obj, key, index) { this.$refs[key][index].click() - }, onPanelToggle(panelIndex, envKey) { this.$nextTick(() => { @@ -1289,7 +1281,6 @@ export default { }, constructProjectJsonFromProject(project) { - const p = project // JSON.parse(JSON.stringify(project.projectJson)); p.ui = { @@ -1403,6 +1394,7 @@ export default { this.projectCreated = true } catch (e) { this.$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000) + toast.goAway(0) } this.projectReloading = false @@ -1882,7 +1874,6 @@ export default { } } } - } }, beforeMount() { diff --git a/packages/nc-gui/pages/project/xcdb.vue b/packages/nc-gui/pages/project/xcdb.vue index 3df04c0bf8..12fb168366 100644 --- a/packages/nc-gui/pages/project/xcdb.vue +++ b/packages/nc-gui/pages/project/xcdb.vue @@ -156,7 +156,7 @@ export default { } }) } catch (e) { - this.$toast.error(e.message).goAway(3000) + this.$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000) } this.loading = false } else { diff --git a/packages/nocodb/src/lib/noco-models/Project.ts b/packages/nocodb/src/lib/noco-models/Project.ts index e1bc347051..59599f3d9b 100644 --- a/packages/nocodb/src/lib/noco-models/Project.ts +++ b/packages/nocodb/src/lib/noco-models/Project.ts @@ -184,6 +184,10 @@ export default class Project implements ProjectType { } if (o) await NocoCache.del(`${CacheScope.PROJECT}:${projectId}`); + if (o?.title) { + await NocoCache.del(`${CacheScope.PROJECT}:${o.title}`); + } + // remove item in cache list await NocoCache.deepDel( CacheScope.PROJECT,