In 2020 Hungarian GP, Red Bull rebuilt the front end of Max's car, /on the grid/, after he crashed out during a recon lap[1]. They had 20 minutes, but but finished comfortably early with 25 seconds to spare. Max finished that race in second position.
[1] it was a wet race so the race start was delayed after the initial recon lap.