Blank page after I delete or create an item on my "table"
I'm encountering an error, I've been trying to solve it for over 24 hours now but I'm stuck, maybe there's something I'm not seeing but the issue doesn't really seem to be related to my code directly since I'm using the default <DeleteButton /> (antd) for example and even though it delete's the item properly (I can verify that by refreshing the page or by the small motion the list shows for a millisecond before showing blank). It seems that for some reason it's trying to do something else afterwards on the re-rendering process that is preventing it from properly doing it.
The error I see when I debug is the following (attached image 1, shows the exception thrown), in the second image we can see that newChild is "company". I also don't know where this "{resource}" is coming from, I don't have anything like that in my code.
I'll attach the companies page and the CreateTable modal form which are the only parts of the code relevant to this issue.
Not sure what else to say, again, it's a very weird issue because it actually does the mutation properly, it deletes and creates, but after a split second it looks like it's trying to render something new or that doesn't exist and is giving me a blank page before that. I tried to find similar issues here or on the internet and couldn't find a proper solution or maybe I'm just blind and simply can't see it xd.
Thanks beforehand.
The error I see when I debug is the following (attached image 1, shows the exception thrown), in the second image we can see that newChild is "company". I also don't know where this "{resource}" is coming from, I don't have anything like that in my code.
I'll attach the companies page and the CreateTable modal form which are the only parts of the code relevant to this issue.
Not sure what else to say, again, it's a very weird issue because it actually does the mutation properly, it deletes and creates, but after a split second it looks like it's trying to render something new or that doesn't exist and is giving me a blank page before that. I tried to find similar issues here or on the internet and couldn't find a proper solution or maybe I'm just blind and simply can't see it xd.
Thanks beforehand.


