Hi! Does anybody know a proper way to do this? I solved this by checking if any of my event?.params?.data values that are a relation have a connect property.
Like so:
if (!event?.params?.data?.term?.connect) {
// backend
} else {
// frontend
}
But this feels like a hack and does not work if you have no relations in your data…