Skip to content

Commit

Permalink
fix rendering of pages with Vectors as ui
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaensel committed Dec 19, 2024
1 parent 43f7c74 commit aa87d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ function page(model::Union{M, Vector{M}}, args...;
prepend::Union{S,Vector} = "", append::Union{T,Vector} = [],
core_theme::Bool = true,
kwargs...)::ParsedHTMLString where {M<:Stipple.ReactiveModel, S<:AbstractString,T<:AbstractString}
model isa Vector || (model = [model])
uis = if !isempty(args)
args[1] isa Vector ? args[1] : [args[1]]
args[1] isa Vector && model isa Vector ? args[1] : [args[1]]
else
""
end
model isa Vector || (model = [model])
counter = Dict{DataType, Int}()

function rootselector(m::M) where M <:ReactiveModel
Expand Down

0 comments on commit aa87d30

Please sign in to comment.