She was alive when they voted. No one knew she would no longer be alive on Oct 24. If she had died in October 25 and had won, there would be a by election because the incumbent, not the candidate, had died. It’s a rare occurrence for any of this to happen, but there are rules in place.
That is true BUT if she did win a majority of votes or at least a significant portion than there should be a by-election.