Commit a2379d5f authored by Steffen Michels's avatar Steffen Michels

DynamicEditor: properly set UI attributes for default choices

parent d1f2a3fd
Pipeline #31159 passed with stage
in 6 minutes and 32 seconds
......@@ -77,15 +77,16 @@ where
_ = case filter (\(cons, _) -> cons.useAsDefault) matchingConses of
[(defaultChoice, _): _]
# (mbUis, idx, type, label, vst) = genChildEditors dp defaultChoice.consId Enter vst
# attrs = 'Map'.union (withContainerClassAttr defaultChoice.uiAttributes) attr
= case mbUis of
Ok (uis, childSts)
| hideCons =
( Ok (uiContainer attr uis, Just (defaultChoice.consId, type, True), [nullState: childSts])
( Ok (uiContainer attrs uis, Just (defaultChoice.consId, type, True), [nullState: childSts])
, vst
)
| otherwise
# (consChooseUI, chooseSt) = genConsChooseUI taskId dp (Just idx)
= ( Ok ( uiContainer attr [consChooseUI: uis]
= ( Ok ( uiContainer attrs [consChooseUI: uis]
, Just (defaultChoice.consId, type, True)
, [chooseSt: childSts]
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment