If one partner on a mortgage is declared bankrupt, it isn't likely to impact the property unless the mortgage is the default subject. You won't usually face repossession provided you keep up to date with the mortgage repayments.
The receiver will review the bankrupt person's assets and calculate the equity on their proportion of ownership in the property but do not usually touch the other joint owner's equity.
Sometimes, the receiver might order the bankruptcy party to release their share of the equity to repay some of the debt, which might mean refinancing or selling the property.
If you have equity in your home, you might be able to remortgage to raise the cash required to repay the debt and apply for bankruptcy to be annulled.