minor fix (#13095)
diff --git a/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.js b/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.js
index 8867e7d..8df851c 100644
--- a/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.js
+++ b/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.js
@@ -15,8 +15,8 @@
frm.set_query('add_item', get_item_query);
},
onload_post_render: function(frm) {
- if(!this.item_selector) {
- this.item_selector = new erpnext.ItemSelector({
+ if(!frm.item_selector) {
+ frm.item_selector = new erpnext.ItemSelector({
frm: frm,
item_field: 'item',
item_query: 'erpnext.restaurant.doctype.restaurant_order_entry.restaurant_order_entry.item_query_restaurant',