diff --git a/apps/dokploy/components/dashboard/project/add-compose.tsx b/apps/dokploy/components/dashboard/project/add-compose.tsx
index 815c58ca82..0d6d7a7bc2 100644
--- a/apps/dokploy/components/dashboard/project/add-compose.tsx
+++ b/apps/dokploy/components/dashboard/project/add-compose.tsx
@@ -79,7 +79,7 @@ export const AddCompose = ({ environmentId, projectName }: Props) => {
api.compose.create.useMutation();
// Get environment data to extract projectId
- const { data: environment } = api.environment.one.useQuery({ environmentId });
+ // const { data: environment } = api.environment.one.useQuery({ environmentId });
const hasServers = servers && servers.length > 0;
// Show dropdown logic based on cloud environment
@@ -117,6 +117,8 @@ export const AddCompose = ({ environmentId, projectName }: Props) => {
await utils.environment.one.invalidate({
environmentId,
});
+ // Invalidate the project query to refresh the project data for the advance-breadcrumb
+ await utils.project.all.invalidate();
})
.catch(() => {
toast.error("Error creating the compose");
diff --git a/apps/dokploy/components/dashboard/project/add-template.tsx b/apps/dokploy/components/dashboard/project/add-template.tsx
index ef9a88e6f7..fd37e6a0c0 100644
--- a/apps/dokploy/components/dashboard/project/add-template.tsx
+++ b/apps/dokploy/components/dashboard/project/add-template.tsx
@@ -332,6 +332,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
viewMode === "detailed" && "border-b",
)}
>
+ {/** biome-ignore lint/performance/noImgElement: this is a valid use for img tag */}
{
return (
<>
+ {!isCloud && (
+
{env.name}
+ + {envServices} service + {envServices !== 1 ? "s" : ""} + ++ {currentEnvironment?.name || "production"} +
+ )} + + {/* Service Selector - only show when viewing a service */} + {serviceId && currentService && ( + <> +