Jennifer Lopez and Ben Affleck are making sure to prioritize their kids.

Ben Affleck, Jennifer Lopez arrives at the Los Angeles Premiere Of Amazon MGM Studios "This Is Me...Now: A Love Story" at Dolby Theatre on February 13, 2024

Despite the recent strain in their marriage, a source tells PEOPLE that the couple “still want to put the kids first,” and adds,  “Jennifer and Ben have always been very family-oriented.”

The insider notes it was important to the singer-actress, 54, to attend Violet Affleck’s graduation ceremony on Thursday, May 30.

“The graduation was a big deal,” says the source. “Jennifer wanted to celebrate it.”

Still, the current situation has “been heartbreaking for her,” adds the source.

jlo with kids on spring break

Jennifer Lopez.JENNIFER LOPEZ/INSTAGRAM

The united front came after the couple had last been photographed together on May 19, when they showed up in Santa Monica for another school event.

The pair, who married in 2022 after rekindling their relationship in the early 2000s, share a blended family. Affleck, 51, has Violet, 18, as well as Seraphina, 15, and Samuel, 12, with ex-wife Jennifer Garner, 51, while Lopez shares 16-year-old twins Maximilian “Max” David and Emme Maribel with ex-husband Marc Anthony.

On May 28, a source told PEOPLE that Garner “wants the best for” Affleck. “She wants him happy and healthy so he can be the best dad possible,” added the source.

Ben Affleck and Samuel Garner Affleck speak at the Ruffles Celebrity Game during the 2023 NBA All-Star Weekend at Vivint Arena on February 17, 2023 in Salt Lake City, Utah.

Ben Affleck and Samuel Garner Affleck on February 17, 2023 in Salt Lake City, Utah. KEVIN MAZUR/GETTY

On May 22, a source close to Lopez shared that the couple “is not in the best place at the moment,” and the pair have been living apart from each other recently. Lopez remains in the $60 million Beverly Hills mansion they bought last year, and Affleck is residing in a rental home a few miles away.

Ben Affleck jennifer lopez golden globes 01 07 24

Ben Affleck and Jennifer Lopez on January 7, 2024 in Beverly Hills, California.CHRISTOPHER POLK/GOLDEN GLOBES 2024/GOLDEN GLOBES 2024 VIA GETTY

On Friday, May 31, Live Nation announced that the singer’s This Is Me… Live Tour is canceled because she is “taking time off to be with her children, family and close friends.”

Lopez also released a statement to her fans on her OntheJLo website and explained why it was a tough decision to make.

“I am completely heartsick and devastated about letting you down. Please know that I wouldn’t do this if I didn’t feel that it was absolutely necessary,” Lopez wrote.

She continued, “I promise I will make it up to you and we will all be together again. I love you all so much. Until next time…”

Lopez has been promoting her new Netflix film Atlas, which hit the streaming service on May 24 and has reached No. 1 in 55 countries as Affleck continues filming his upcoming project, The Accountant 2.