# HG changeset patch # User bsw # Date 1613395071 -3600 # Node ID 59cbb870253c5de2688bf9a93216564652d083a9 # Parent fa9e93235e022afb448a11c320ac4454eadc7b77 Show draft edit again on error diff -r fa9e93235e02 -r 59cbb870253c app/main/draft/new.lua --- a/app/main/draft/new.lua Sun Feb 14 15:22:57 2021 +0100 +++ b/app/main/draft/new.lua Mon Feb 15 14:17:51 2021 +0100 @@ -126,10 +126,10 @@ ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() -- -------- PREVIEW - if param.get("preview") then + if param.get("preview") and slot.get_content("error") == "" then ui.sectionRow( function() if not issue and not initiative then - ui.container { content = policy.name } + ui.container { content = policy and policy.name or "" } end if param.get("free_timing") then ui.container { content = param.get("free_timing") }