fastn
fastn copied to clipboard
if condition is not working with $on-click$
if condition is not working as expected
-- ftd.text: hello
$on-click$ if { $subSection.redirectUrl == NULL }: $ftd.set-integer($a=$global.componentCount,v= $subSectioncomponentCount)
Showing error:
fastn-Error: path: dashboard/planning/selection, PackageError { message: "failed to parse ASTError(Parse { message: \"Header is not property, found `KV(KV { line_number: 204, key: \\\"if\\\", kind: Some(\\\"$on-click$\\\"), value: Some(\\\"{ $subSection.redirectUrl == NULL }: $ftd.set-integer($a=$global.componentCount,v= $subSectioncomponentCount)\\\"), condition: None, access_modifier: Public, source: Header })`\", doc_id: \"fastn-stack.github.io/ftd-web-component-example/components/miniStatusBar3\", line_number: 204 })"