fastn icon indicating copy to clipboard operation
fastn copied to clipboard

if condition is not working with $on-click$

Open Sarvom opened this issue 2 years ago • 0 comments

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 })" 

Sarvom avatar Jan 18 '24 07:01 Sarvom