mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 17:53:53 +00:00
refacto
Signed-off-by: Pierre Noël <petersg83@gmail.com>
This commit is contained in:
parent
05cc400905
commit
b5959705b2
@ -80,7 +80,9 @@ class PopUpForm extends React.Component {
|
|||||||
case 'twitch':
|
case 'twitch':
|
||||||
return `${strapi.backendURL}/connect/twitch/callback`;
|
return `${strapi.backendURL}/connect/twitch/callback`;
|
||||||
default:
|
default:
|
||||||
return `${strapi.backendURL}/connect/\${provider}/callback`;
|
return this.props.dataToEdit
|
||||||
|
? `${strapi.backendURL}/connect/${this.props.dataToEdit}/callback`
|
||||||
|
: '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user