Based on what I’ve read, there currently is no official line of succession for Prime Minister in the UK.
So it appears there will be another election if Boris bites the dust.