Skip to content

Update user.js#35

Open
dogboy21 wants to merge 1 commit intoDerEnderKeks:masterfrom
dogboy21:patch-1
Open

Update user.js#35
dogboy21 wants to merge 1 commit intoDerEnderKeks:masterfrom
dogboy21:patch-1

Conversation

@dogboy21
Copy link
Copy Markdown
Contributor

Fixes broken editing of users

Fixes broken editing of users
Copy link
Copy Markdown
Owner

@DerEnderKeks DerEnderKeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes necessary

if (blockEdit) return;
blockEdit = true;
const url = '../api/users/' + searchedUser.id;
const url = '/api/users/' + searchedUser.id;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL should not be absolute but relative. In this case it should be ../../api/users/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants