From f118a5bcdae441d8190184c1239088b04f03e60a Mon Sep 17 00:00:00 2001 From: rharkor Date: Wed, 4 Sep 2024 09:26:50 +0200 Subject: [PATCH] fix: handle apply error --- packages/cli/src/app/.env.example | 3 ++- packages/cli/src/app/.gitignore | 3 ++- .../cli/src/app/src/app/components/current-configuration.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/app/.env.example b/packages/cli/src/app/.env.example index 5e025e66..ef304eb6 100644 --- a/packages/cli/src/app/.env.example +++ b/packages/cli/src/app/.env.example @@ -1,2 +1,3 @@ LOGGER_ENV=development -ROOT_PATH=/workspace/packages/cli/src/app \ No newline at end of file +ENV=development +ROOT_PATH=/workspace/packages/cli/src/app/out \ No newline at end of file diff --git a/packages/cli/src/app/.gitignore b/packages/cli/src/app/.gitignore index 0cffcb34..b6a7c111 100644 --- a/packages/cli/src/app/.gitignore +++ b/packages/cli/src/app/.gitignore @@ -1 +1,2 @@ -config.json \ No newline at end of file +config.json +out \ No newline at end of file diff --git a/packages/cli/src/app/src/app/components/current-configuration.tsx b/packages/cli/src/app/src/app/components/current-configuration.tsx index f5d13bbb..ea73ece3 100644 --- a/packages/cli/src/app/src/app/components/current-configuration.tsx +++ b/packages/cli/src/app/src/app/components/current-configuration.tsx @@ -59,7 +59,7 @@ export default function CurrentConfiguration({ } const applyConfigurationMutation = trpc.configuration.applyConfiguration.useMutation({ - onSettled: async () => { + onSuccess: async () => { toast.success(dictionary.configurationApplied) }, })