Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Drop redundant method default in webhook/http nodes

Paulo Castellano1ac4795575cc
diff --git a/resources/js/components/automations/nodes/HttpRequestNode.vue b/resources/js/components/automations/nodes/HttpRequestNode.vue
index 2f89b16ad..0c1aa360a 100644
--- a/resources/js/components/automations/nodes/HttpRequestNode.vue
+++ b/resources/js/components/automations/nodes/HttpRequestNode.vue
@@ -3,18 +3,16 @@ import { IconWorld } from '@tabler/icons-vue';
import { Handle, Position } from '@vue-flow/core';
import { computed } from 'vue';
-import { HttpMethod } from '@/types/automation/http-method';
-
const props = defineProps<{
data: {
url?: string;
- method?: string;
+ method: string;
};
selected?: boolean;
}>();
const summary = computed(() => {
- const method = (props.data.method ?? HttpMethod.Get).toUpperCase();
+ const method = props.data.method.toUpperCase();
const url = props.data.url;
if (!url) return method;
let host = url;
diff --git a/resources/js/components/automations/nodes/WebhookNode.vue b/resources/js/components/automations/nodes/WebhookNode.vue
index b2c2c16c1..3e145f99d 100644
--- a/resources/js/components/automations/nodes/WebhookNode.vue
+++ b/resources/js/components/automations/nodes/WebhookNode.vue
@@ -3,18 +3,16 @@ import { IconWebhook } from '@tabler/icons-vue';
import { Handle, Position } from '@vue-flow/core';
import { computed } from 'vue';
-import { HttpMethod } from '@/types/automation/http-method';
-
const props = defineProps<{
data: {
url?: string;
- method?: string;
+ method: string;
};
selected?: boolean;
}>();
const summary = computed(() => {
- const method = (props.data.method ?? HttpMethod.Post).toUpperCase();
+ const method = props.data.method.toUpperCase();
const url = props.data.url || 'https://…';
return `${method} · ${url}`;
});