From 8871b18af70dda3db0438fa4891d287846a4d36c Mon Sep 17 00:00:00 2001 From: Alex Tugarev Date: Fri, 29 Sep 2023 15:02:05 +0000 Subject: [PATCH] don't save empty pattern strings --- components/dashboard/src/projects/ProjectSettings.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/dashboard/src/projects/ProjectSettings.tsx b/components/dashboard/src/projects/ProjectSettings.tsx index 80024cf52e543a..7a3bd09ec011f2 100644 --- a/components/dashboard/src/projects/ProjectSettings.tsx +++ b/components/dashboard/src/projects/ProjectSettings.tsx @@ -156,6 +156,9 @@ export default function ProjectSettingsView() { const updatePrebuildBranchPattern = useCallback( async (value: string) => { + if (!value) { + return; + } setPrebuildBranchPattern(value); debouncedUpdatePrebuildBranchPattern(value);