Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests
Browse files Browse the repository at this point in the history
BeastyBlacksmith committed May 3, 2024
1 parent 29534f0 commit 1041519
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler/state.jl
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ function _dependencies_json(app::DashApp)
output = output_string(callback.dependencies),
clientside_function = _dep_clientside_func(callback.func),
prevent_initial_call = callback.prevent_initial_call,
long = callback.long && (interval = callback.interval)
long = callback.long !== false && (interval = callback.long[:interval],)
)
end
return JSON3.write(result)
2 changes: 1 addition & 1 deletion test/callbacks.jl
Original file line number Diff line number Diff line change
@@ -674,5 +674,5 @@ end
request = HTTP.Request("GET", "/_dash-dependencies")
resp = Dash.HttpHelpers.handle(handler, request)
deps = JSON3.read(String(resp.body))
@test deps[1].long
@test deps[1].long.interval == 1000
end

0 comments on commit 1041519

Please sign in to comment.