A Southwest Airlines flight from Chicago to Phoenix was diverted to Milwaukee due to a "potential mechanical issue" on Wednesday afternoon, throwing a wrench in the beleaguered airline's efforts to get back on track following thousands of canceled flights in recent days.  

The issue on flight 1715 involved one of the aircraft's flaps, a Southwest spokesperson said. It took off from Midway International Airport at 12:45 p.m. and was taken out of service after landing safely in Milwaukee. 

"A different aircraft is being brought in to continue the flight to Phoenix," the spokesperson told Fox News Digital. "We appreciate our Customers’ patience as we work to get them to their destinations as quickly as possible."

Southwest Airplane

FILE PHOTO: A Southwest Airlines jetliner sits at a gate on the C concourse of Denver International Airport. (AP Photo/David Zalubowski)

Southwest Airlines canceled thousands of flights over the Christmas weekend, leaving travelers stranded in airports across the country as they tried to get home for the holidays. 

TRAVEL EXPERT SHARES TIPS FOR HOLIDAY TRAVELERS DEALING WITH WINTER STORM DELAYS

The cancellations have continued this week, with 2,509 flights canceled on Wednesday and 2,348 canceled for Thursday, according to flight tracker FlightAware. 

Southwest Airlines CEO Bob Jordan apologized to travelers on Tuesday, explaining that the airline's "highly complex" network was thrown off by the brutal winter storm that swept threw the United States over the past week, leaving dozens of crews and aircraft out of position. 

Southwest passengers

Stranded Southwest Airlines passengers looks for their luggage in the baggage claim area at Chicago Midway International Airport in Chicago, Illinois, on December 28, 2022.  (Kamil Krzaczynski/AFP via Getty Images)

Southwest passenger stranded

A traveler waits outside the Southwest Airlines baggage office at Oakland International Airport (OAK) in Oakland, California, US, on Wednesday, Dec. 28, 2022. (David Paul Morris/Bloomberg via Getty Images)

Casey Murray, President of the Southwest Airlines Pilots Association, said that the chaos stems from outdated technology and was a "decade in the making." 

"We have sounded the alarm bells," Murray told "Your World with Neil Cavuto" on Wednesday. "We have tried to get them to change processes. But it's a combination of processes, outdated technology and infrastructure." 

CLICK HERE TO GET THE FOX NEWS APP

Transportation Secretary Pete Buttigieg said his agency will hold the airline accountable for the cancellations, while the Senate Commerce Committee announced Tuesday that it will investigate what caused the disruptions.