@I-Yash If you still have a backup of your save, either one you made yourself or the automatic copy the game generates, you can try to fix this issue without losing your family tree. If you evict your sims in Edit Town but don't save them to the bin, then save the house alone, bulldoze the lot, replace the house, and move the family back in, all without leaving Edit Town, your sims will keep their jobs and relationships, although they'll lose their promised dreams and opportunities. Of course, this fix isn't quite as thorough as saving the sims to the bin and placing them in a new save, but you could always try it to see if it works.
In case you don't know, the game's backup can be found in your saves folder and will be labeled [your save name].sims3.backup. So if your main save is SunsetValley, the main save folder will be SunsetValley.sims3, and the backup will be SunsetValley.sims3.backup. If you delete the .backup extension and rename the save (i.e. SunsetValley1.sims3), it will be available to load at the Main Menu, along with your other saves. But, of course, this will only help you if the backup is from before you used this fix.