fix: don't error out if a connection doesn't have config; fixes
@@ -206,9 +206,8 @@ export const useIntegrationHelpers = () => {
actionId: string,
configuredProperties: any
): Promise<ActionDescriptor | null> => {
- if (configuredProperties) {
const response = await callFetch({
- body: configuredProperties,
+ body: configuredProperties || {},
headers: apiContext.headers,
method: 'POST',
url: `${
@@ -219,9 +218,6 @@ export const useIntegrationHelpers = () => {
throw new Error(response.statusText);
}
return (await response.json()) as ActionDescriptor;
- } else {
- return null;
- }
};
/**
