Add revisioned decisions and scoped consultation lifecycle
This commit is contained in:
@@ -53,7 +53,7 @@ export default function Communication() {
|
||||
if (loaded.current !== selected || box.scrollHeight - box.scrollTop - box.clientHeight < 300) box.scrollTop = box.scrollHeight
|
||||
loaded.current = selected
|
||||
}, [lastId, selected, messages.session])
|
||||
const decisions = (state as { decisions?: { id: string; status: string }[] }).decisions?.filter(d => d.status === 'open') || []
|
||||
const decisions = (state as { decisions?: { id: string; status: string }[] }).decisions?.filter(d => ['open','needs_reconsideration'].includes(d.status)) || []
|
||||
const text = drafts[selected] || ''
|
||||
async function send(event: FormEvent) {
|
||||
event.preventDefault()
|
||||
@@ -92,4 +92,4 @@ export default function Communication() {
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user