Razor component. The child content element 'ChildContent' of component 'EditForm' uses the same para

If I understood correctly, I think the problem is with Model attribute, though the name is not the same as in @context.User
What am I messing ?
14 Replies
nael4slayer
nael4slayerOP3y ago
Renn
Renn3y ago
context is already taken by AuthorizeView. You can add a parameter to EditForm to change the context variable name by using Context=“something”, where “something” is your variable name. It can be anything you want.
nael4slayer
nael4slayerOP3y ago
I'm not using context in the EditForm. the model in the form coming from code { } bellow.
Renn
Renn3y ago
I understand that, but context is being imported from NotAuthorized, and EditForm also has a context. So that means you need to change one of them. You can pick either one you want.
nael4slayer
nael4slayerOP3y ago
Got it. Thanks
Renn
Renn3y ago
Don’t forget to type /close to close this thread
nael4slayer
nael4slayerOP3y ago
Where exactly do I type that ?
Renn
Renn3y ago
Here should do it
nael4slayer
nael4slayerOP3y ago
Renn
Renn3y ago
If you use the slash command /close just here in chat, the bot should take care of it I can’t do it myself
nael4slayer
nael4slayerOP3y ago
I didn't know that we should remove posts after we're done
Renn
Renn3y ago
It’s not removing it. It just marks it as resolved so that it doesn’t show up in the active list anymore
nael4slayer
nael4slayerOP3y ago
Alight
Accord
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server