DataTable: typescript code of CRUD example produces Unexpected token error #7161
Labels
Component: Documentation
Issue or pull request is related to Documentation
Milestone
Describe the bug
The TypeScript code in the CRUD showcase for the DataTable component is raising two
Unexpected token
errors, preventing the app from rendering. These errors are also present in the Stackblitz demo published in Section dtproducts on primereact.orgThe issue is caused by two malformed strings used as the src field for the product images.
Issue 1
primereact/components/doc/datatable/samples/productsdoc.js
Lines 863 to 869 in 14ccac1
The src string at line
864
should be replaced with the following:Issue 2
The same issue occurs again at line
962
.primereact/components/doc/datatable/samples/productsdoc.js
Lines 961 to 965 in 14ccac1
The src string at line
962
should be replaced with the following:I am going to open a pull request with this small fix.
Reproducer
No response
System Information
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: