I think that Sturgeon misjudged the election period badly - which is quite surprising for me, she's normally quite astute (or lucky). The best position would be to clearly focus on Brexit in the first instance, as there would be no possibility of Scotland staying in the EU while rUK left. IndyRef2 would only be considered during this parliament in the case of a hard Brexit.
She kept on saying that this wasn't about IndyRef2, but I don't think she explicitly took it off the table if the Brexit outcome was vaguely acceptable. That, I think, was a misjudgment.