ZAF ticket.save hook is not rejecting on a file with extension .tsx | Community
Skip to main content

ZAF ticket.save hook is not rejecting on a file with extension .tsx

  • May 10, 2023
  • 1 reply
  • 0 views

J.Macedo(Aktie

Hello,

I'm building a ticket sidebar app, React with Typescript.

But, when I'm trying to use the ticket.save hook, I'm not able to prevent the ticket in question from being saved.

Is this an issue that only occurs in React files?

Follow my code:

1 reply

Eric27
  • May 11, 2023
Hey there,

I've tested this with our react scaffold and everything worked as anticipated. One thing to note is that you're using an NPM package that isn't actually built by Zendesk and hasn't been updated in six years. I'd suggest taking a look at our React scaffold and how we've implemented the app's framework there. After implementing ZAF directly if you're still having issues, feel free to provide us a sample app and we can take a look. 
 
Thanks!