Nice quick fix there!
Ours did something like that at 1:00 in the morning. I awoke to the gentle hum of the water pump (under our bed) as is was just pumping the last few drops of our 40 gallon tank out onto the floor under the kitchen sink.
Thankfully the kitchen is in the back and all the water just ran towards the back of the trailer where the flooring wraps around the plywood floor. Then it just ran out underneath.
Nothing like a bit of emergency plumbing to really get your late night energy up.
For years I have stocked extra fittings in the TT just in case I had to bypass a failed component so it wasn't too big a deal.