Skip to content

Commit df17ea8

Browse files
update: webhooks
1 parent 94066d4 commit df17ea8

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

dashboard/src/components/UpdateWebhookModal.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ import {
2929
WebhookInputHeaderFields,
3030
UpdateWebhookModalViews,
3131
} from '../constants';
32-
import {
33-
capitalizeFirstLetter,
34-
validateEventName,
35-
validateURI,
36-
} from '../utils';
32+
import { capitalizeFirstLetter, validateURI } from '../utils';
3733
import { AddWebhook, EditWebhook } from '../graphql/mutation';
3834
import { rest } from 'lodash';
3935

dashboard/src/utils/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,3 @@ export const validateURI = (uri: string) => {
8686
? true
8787
: false;
8888
};
89-
90-
export const validateEventName = (name: string) => {
91-
if (!name || name === '') return true;
92-
return name.toLowerCase().match(/^.{4,}[.].{5,}$/) ? true : false;
93-
};

0 commit comments

Comments
 (0)