diff --git a/erpnext/templates/generators/item/item_configure.js b/erpnext/templates/generators/item/item_configure.js
index 284eb25218..a27c8300dd 100644
--- a/erpnext/templates/generators/item/item_configure.js
+++ b/erpnext/templates/generators/item/item_configure.js
@@ -202,7 +202,7 @@ class ItemConfigure {
add_to_cart = `${__('Add to cart')}`;
product_action = in_stock ? add_to_cart : `${__('Not in Stock')}`;
} else {
- product_info = '';
+ product_action = '';
}
const item_add_to_cart = one_item ? `