-- Replace onClick handler with wizardId on OHS incident modals
UPDATE ui_modals
SET config = jsonb_set(
    config,
    '{header,0}',
    (config->'header'->0) - 'onClick' || jsonb_build_object('wizardId', 1)
)
WHERE name IN ('OHS Incidents', 'OHS Investigation Dashboard');
