Update erpnext/erpnext_integrations/taxjar_integration.py

Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
diff --git a/erpnext/erpnext_integrations/taxjar_integration.py b/erpnext/erpnext_integrations/taxjar_integration.py
index 90ee8a8..bd09557 100644
--- a/erpnext/erpnext_integrations/taxjar_integration.py
+++ b/erpnext/erpnext_integrations/taxjar_integration.py
@@ -172,8 +172,7 @@
 		return
 
 	# check if delivering within a nexus
-	nexus_list = frappe.get_doc('TaxJar Settings').get("nexus")
-	if tax_dict["to_state"] not in [nex.region_code for nex in nexus_list]:
+	if not frappe.db.get_value('TaxJar Nexus List', {'region_code': tax_dict["to_state"]})
 		return
 
 	tax_data = validate_tax_request(tax_dict)