function update_field_changes_with_new_ids(changes, field_db_ids) {
	return changes.map(({ action, id, data }) => {
		// if (action !== 'insert') return { action, id, data }
		// keep this for inverted changes (which need to update for deleting recreated rows)
		const db_id = field_db_ids[id] || id
		const parent_db_id = field_db_ids[data?.parent] || data?.parent
		return {
			action,
			id: db_id,
			data: {
				...data,
				...(parent_db_id ? { parent: parent_db_id } : {}),
				id: db_id
			}
		}
	})
}
Updates field changes with new IDs.

@param {Array} changes - The array of field changes.
@param {Object} field_db_ids - An object mapping original field IDs to database IDs.
@returns {Array} The updated array of field changes with new IDs.