Skip to content

Commit

Permalink
Merge pull request #66 from plotly/dev
Browse files Browse the repository at this point in the history
Release 0.1.2 with workaround for Plots vector
  • Loading branch information
waralex authored Sep 23, 2020
2 parents c3c534a + 0488460 commit 84e96ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Dash"
uuid = "1b08a953-4be3-4667-9a23-3db579824955"
authors = ["Chris Parmer <chris@plotly.com>", "Alexandr Romanenko <waralex@gmail.com>"]
version = "0.1.1"
version = "0.1.2"

[deps]
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ RUN sudo apt-get update \
RUN cd /usr/local/src \
&& sudo mkdir /usr/local/src/julia \
&& sudo curl -o julia.tar.gz --location --show-error \
https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.1-linux-x86_64.tar.gz \
https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.1-linux-x86_64.tar.gz \
&& sudo tar --extract --gzip --strip 1 --directory=/usr/local/src/julia --file=julia.tar.gz \
&& sudo ln -s /usr/local/src/julia/bin/julia /usr/local/bin/julia
4 changes: 2 additions & 2 deletions src/handler/processors/callback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ function _push_to_res!(res, value, out)
)
end

_single_element_vect(e::T) where {T} = T[e]
function process_callback_call(app, callback_id, outputs, inputs, state)
cb = app.callbacks[callback_id]
res = cb.func(make_args(inputs, state)...)
(res isa NoUpdate) && throw(PreventUpdate())
res_vector = is_multi_out(cb) ? res : [res]

res_vector = is_multi_out(cb) ? res : _single_element_vect(res)
validate_callback_return(outputs, res_vector, callback_id)

response = Dict{String, Any}()
Expand Down

0 comments on commit 84e96ee

Please sign in to comment.