Title: Small issue on Javascript file
Last modified: January 23, 2024

---

# Small issue on Javascript file

 *  Resolved [smiesko12](https://wordpress.org/support/users/smiesko12/)
 * (@smiesko12)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/small-issue-on-javascript-file/)
 * Is possible include small update on woocommerce-services-new-order-taxjar javascript
   file on next update ?
   The jQuery ajax handled by ajaxSend method could propagate
   settings with empty data property or with the data property with no-string value.
 * The javascript file has code that handle ajaxSend event with this code snippet:
 * `ajaxSend(function(t,n,r){if(r.data&&r.data.indexOf("woocommerce_calc_line_taxes")
   >0){`
 * and I would ask you if possible just add condition for type of object
 * `ajaxSend(function(t,n,r){if(**typeof(r.data)==="string"**&&r.data.indexOf("woocommerce_calc_line_taxes")
   >0){`
 * Our plugin handling ajax file upload and the error handling procedure catch your
   javascript unhandled error that breaking next our code processing.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Afzal (woo-hc)](https://wordpress.org/support/users/afzalpansuvi/)
 * (@afzalpansuvi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/small-issue-on-javascript-file/#post-17365589)
 * Hi [@smiesko12](https://wordpress.org/support/users/smiesko12/),
 * I understand that you are requesting a small update on the file to add a condition
   for the type of object in the ajaxSend function. Unfortunately, we cannot guarantee
   that this update will be included in the next release, as we have to prioritize
   other features and bug fixes. However, we appreciate your feedback and we will
   consider it for future improvements.
 * Please note that writing or providing custom code is not within the scope of 
   [our support policy](https://woo.com/support-policy/). For development and custom
   coding questions, it’s best to ask for insight related to those on either the
   [WooCommerce Advanced Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the [WooCommerce Community Slack](https://woo.com/community-slack/). You can
   also seek help from the following:
    - A local web developer
    - [WooExperts](https://partners.woo.com/English/marketplace/)
 * I wish I could help more, but hopefully, this gets you going in the right direction
   to get the job done.
 *  Thread Starter [smiesko12](https://wordpress.org/support/users/smiesko12/)
 * (@smiesko12)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/small-issue-on-javascript-file/#post-17365594)
 * Thanks for your quick reply, its OK for me.
 *  [Afzal (woo-hc)](https://wordpress.org/support/users/afzalpansuvi/)
 * (@afzalpansuvi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/small-issue-on-javascript-file/#post-17365656)
 * Hi [@smiesko12](https://wordpress.org/support/users/smiesko12/),
 * Thanks for getting back to us. We are glad to help!
 * Just so you know – we will now close this ticket as solved. If you have any other
   questions or issues, please feel free to open a new ticket and we’ll be happy
   to assist you.
 * Thank you for choosing WooCommerce and have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Small issue on Javascript file’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-services/assets/icon-256x256.png?rev=3234419)
 * [WooCommerce Tax (formerly WooCommerce Shipping & Tax)](https://wordpress.org/plugins/woocommerce-services/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-services/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-services/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-services/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-services/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-services/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Afzal (woo-hc)](https://wordpress.org/support/users/afzalpansuvi/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/small-issue-on-javascript-file/#post-17365656)
 * Status: resolved