Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if condition is not working with $on-click$ #1714

Open
Sarvom opened this issue Jan 18, 2024 · 0 comments
Open

if condition is not working with $on-click$ #1714

Sarvom opened this issue Jan 18, 2024 · 0 comments

Comments

@Sarvom
Copy link

Sarvom commented Jan 18, 2024

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 })" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant