From d83fa63af587013cba18496938c97fd5db7defe3 Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 2 Apr 2026 21:58:14 -0400 Subject: [PATCH] Fix to null out the rewrite on the frontend too --- .../settings/resources/proxy/[niceId]/proxy/page.tsx | 12 ++++++++++-- .../[orgId]/settings/resources/proxy/create/page.tsx | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx b/src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx index 3001491f1..3d6e6186b 100644 --- a/src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx @@ -400,7 +400,11 @@ function ProxyResourceTargetsForm({ pathMatchType: row.original.pathMatchType }} onChange={(config) => - updateTarget(row.original.targetId, config) + updateTarget(row.original.targetId, + config.path === null && config.pathMatchType === null + ? { ...config, rewritePath: null, rewritePathType: null } + : config + ) } trigger={