Show the code where you add the entity.
If you want to see whether the issue is with the split view, create a list that just shows the items and add a way to add new items. If you still have problems, you know the split view isn't causing the problems.
Also see the following Stack Overflow question:
https://stackoverflow.com/questions/73028881/swiftui-list-crashes-when-adding-items-on-macos
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: