Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: error notification

Andras Bacsaid0cb35068785
diff --git a/apps/ui/src/routes/applications/[id]/_Secret.svelte b/apps/ui/src/routes/applications/[id]/_Secret.svelte
index a161585875..d746d6f89d 100644
--- a/apps/ui/src/routes/applications/[id]/_Secret.svelte
+++ b/apps/ui/src/routes/applications/[id]/_Secret.svelte
@@ -39,8 +39,8 @@
async function addNewSecret() {
try {
- if (!name) return errorNotification(`${t.get('forms.name')} ${t.get('forms.is_required')}`);
- if (!value) return errorNotification(`${t.get('forms.value')} ${t.get('forms.is_required')}`);
+ if (!name) return errorNotification({ message: 'Name is required.' });
+ if (!value) return errorNotification({ message: 'Value is required.' });
await post(`/applications/${id}/secrets`, {
name,
value,
@@ -61,7 +61,7 @@
changeIsBuildSecret = false
}: { changeIsBuildSecret?: boolean } = {}) {
if (changeIsBuildSecret) isBuildSecret = !isBuildSecret;
- if (isNewSecret) return
+ if (isNewSecret) return;
try {
await put(`/applications/${id}/secrets`, {
name,