We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35b87a commit ab1d796Copy full SHA for ab1d796
src/writeData/subscriptions/utils/form.ts
@@ -44,6 +44,18 @@ export const sanitizeForm = (form: Subscription): Subscription => {
44
}
45
})
46
47
+ if (form.jsonTimestamp.path) {
48
+ const startChar = form.jsonTimestamp.path.charAt(0)
49
+ const newVal = checkJSONPathStarts$(startChar, form.jsonTimestamp.path)
50
+
51
+ if (newVal) {
52
+ form.jsonTimestamp.path = newVal
53
+ }
54
55
56
+ if (form.jsonTimestamp.path === '') {
57
+ delete form.jsonTimestamp
58
59
if (form.stringMeasurement) {
60
form.stringMeasurement.pattern = form.stringMeasurement.pattern.replace(
61
/\\\\/g,
0 commit comments