In this context Undesired is an adjective to describe the results. Undesirable means much the same thing but is used to caste the results as a category. In a story or sentence this is a more severe, negative restriction.
If two people showed up to do the job and neither one was appropriate I might describe them in two ways. One who is unqualified but pleasant would be undesired meaning not desired because they clearly could not manage the job. The other, nasty, brutish and short tempered, is very clearly not suited to any legitimate work would be described as An undesirable. This means they are not desired at all for anything or perhaps even tolerated in my world.
The context of your two sentences does not make clear the use or expectation of the result so the difference is minor and a distinction not so useful.