From 764def4f7d56153407957bc0136cdd97a0636b06 Mon Sep 17 00:00:00 2001 From: Steve Dogiakos Date: Wed, 18 Mar 2026 23:02:08 -0600 Subject: [PATCH] Fix isEditor temporal dead zone error in renderRow --- public/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index d3c30bc..82d288a 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -430,6 +430,8 @@ function renderRow(c) { }) : '—'; + const isEditor = state.user && (state.user.role === 'admin' || state.user.role === 'editor'); + const checkbox = isEditor ? `` : ``; @@ -437,8 +439,6 @@ function renderRow(c) { const statusBadge = printed ? 'Printed' : 'Unprinted'; - - const isEditor = state.user && (state.user.role === 'admin' || state.user.role === 'editor'); const actions = isEditor ? `` + ``