Skip to content

Commit

Permalink
don't save empty pattern strings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Sep 29, 2023
1 parent a062d9e commit 8871b18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/dashboard/src/projects/ProjectSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ export default function ProjectSettingsView() {

const updatePrebuildBranchPattern = useCallback(
async (value: string) => {
if (!value) {
return;
}
setPrebuildBranchPattern(value);

debouncedUpdatePrebuildBranchPattern(value);
Expand Down

0 comments on commit 8871b18

Please sign in to comment.