diff --git a/src/components/actionJSForm.js b/src/components/actionJSForm.js
index 5ef46519c..3b0fd06d3 100644
--- a/src/components/actionJSForm.js
+++ b/src/components/actionJSForm.js
@@ -205,8 +205,8 @@
if (error) {
return Something went wrong: {error.message};
}
- const { id } = data;
+ const id = data ? data.id : null;
return ;
}}