split into main goal and other goals

This commit is contained in:
Alexander Bentkamp
2023-01-25 14:45:07 +01:00
parent 3e4a687bd1
commit 313e44a16d
5 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export function AllMessages({uri: uri0}: { uri: DocumentUri }) {
function AllMessagesBody({uri, messages}: {uri: DocumentUri, messages: () => Promise<InteractiveDiagnostic[]>}) {
const [msgs, setMsgs] = React.useState<InteractiveDiagnostic[] | undefined>(undefined)
React.useEffect(() => { void messages().then(setMsgs) }, [messages])
if (msgs === undefined) return <>Loading messages...</>
if (msgs === undefined) return <div>Loading messages...</div>
else return <MessagesList uri={uri} messages={msgs}/>
}