Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Webhooks delete wasn't updating, plus styling tweaks for the HTTP Headers

Matt Roberts881a1b79f4ed
diff --git a/public/components/common/form/Form.scss b/public/components/common/form/Form.scss
index a3d12f5cb..ca6217a4d 100644
--- a/public/components/common/form/Form.scss
+++ b/public/components/common/form/Form.scss
@@ -11,8 +11,9 @@
}
&:last-child {
- margin-bottom: 0;
-
+ &:not(.flex-x > &) {
+ margin-bottom: 0;
+ }
.flex-x > & {
// margin-bottom: spacing(2);
}
diff --git a/public/pages/Administration/pages/ManageWebhooks.page.tsx b/public/pages/Administration/pages/ManageWebhooks.page.tsx
index 0a739ed4a..ff3042763 100644
--- a/public/pages/Administration/pages/ManageWebhooks.page.tsx
+++ b/public/pages/Administration/pages/ManageWebhooks.page.tsx
@@ -69,7 +69,7 @@ const ManageWebhooksPage = (props: ManageWebhooksPageProps) => {
const handleWebhookDeleted = (webhook: Webhook) => {
const idx = allWebhooks.indexOf(webhook)
- setAllWebhooks(allWebhooks.splice(idx, 1) && allWebhooks)
+ setAllWebhooks(allWebhooks.filter((_, i) => i !== idx))
}
const handleWebhookEdited = async (data: WebhookData): Promise<Failure | undefined> => {