My mom skips the step of frying the onion and tomato. There is no right or wrong way. It will depend on your personal preference. Adding the onion and tomato adds a hint of sweetness to the kadhi. If you like your kadhi on the tarter side, you can omit this step.
If you like your pakoras on the softer side, you can let them simmer in the kadhi for longer.