You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Place an ui-table on the dashboard and feed it with some content. Make sure that the table shows the wanted content.
Edit the description of the ui-table and enter a single quote character (').
Deploy again. Now the table is not shown anymore.
I don't know the exact reason, but somehow a string is send to angular with the full object of the ui-table node. (I can't find the starting single quote!) The single quote character in the info-field of the object terminates this string and then the json lexer can't handle this string anymore. Maybe the stringifier is the base cause.
To my opinion this is also the reason for the issue node-red-node-ui-table does not render when Name field has a single quote in it #28
Note: Double quotes don't disturb. Single quotes in the table content are also not an issue.
What happens?
The table is not rendered if a single quote character is in the description (info)
What do you expect to happen?
The table should render. The description should have no influence on the behaviour of the node.
A simple work-around would be to remove the info field from the object for this purpose.
Please tell us about your environment:
Node-RED version: redmatic 1.2.9
node.js version: 12.22.1
npm version: 6.14.12
Platform/OS: raspberry pi 3b+ / raspberrymatic (open source homematic OS) linux 5.10.17
Browser: FF 88.0.1 and Chromium 90.0
node-red-dashboard 2.28.1
node-red-node-ui-table 0.3.10
The text was updated successfully, but these errors were encountered:
thank you for submitting this issue. Actually this effect can be spotted in other ui-nodes (including my own) following the same scheme for placing the HTML code onto the dashboard.
@dceejay : I'm not into regex but after googling perhaps this helps ... (but there must be a better solution to correctly escape inverted commas of all kind correctly) - also as this effect only seams to effect values on first level of the config object (in the columns array they work fine) it is perhaps not necessary to replace all ' apostrophes.
Which node are you reporting an issue on?
nod-red-node-ui-table 0.3.10
What are the steps to reproduce?
I don't know the exact reason, but somehow a string is send to angular with the full object of the ui-table node. (I can't find the starting single quote!) The single quote character in the info-field of the object terminates this string and then the json lexer can't handle this string anymore. Maybe the stringifier is the base cause.
To my opinion this is also the reason for the issue node-red-node-ui-table does not render when Name field has a single quote in it #28
Note: Double quotes don't disturb. Single quotes in the table content are also not an issue.
What happens?
The table is not rendered if a single quote character is in the description (info)
What do you expect to happen?
The table should render. The description should have no influence on the behaviour of the node.
A simple work-around would be to remove the
info
field from the object for this purpose.Please tell us about your environment:
The text was updated successfully, but these errors were encountered: