component is being set to null after edit

If it’s a default subobject then I have no idea why you mark it as replicated.

​​​Anyway, that doesn’t explain much, your problem might come something within your code…