If this made it into the finished episode, then the Script Supervisor or the Editing Team messed up somewhere.
The Script Supervisor would take notes of continuity. Production Continuity, not Trekkie Continuity. i.e. They'd take note that in Shot 1A, Tilly has blue. And in Shot 1B, Tilly has red. Then they'd make a note of which shots the Director wants to use.
The Editing Team would edit together the different shots, looking at the Script Supervisor's notes, working with the Director, and looking at what they themselves would see, and they'd coordinate with each other.
Sometimes things slip through the cracks. And this would be one of them, if it did.