Updating hub firm resource path
This commit is contained in:
@@ -12,7 +12,7 @@ export const CreateFirm = () => {
|
||||
return (
|
||||
<CrudForm
|
||||
schemaName={"FirmCreate"}
|
||||
resource={"firms"}
|
||||
resource={"hub/users/firms/"}
|
||||
onSuccess={() => { refreshUser() }}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -192,7 +192,7 @@ export function empty_user() {
|
||||
|
||||
function findGetParameter(parameterName: string) {
|
||||
let result = null, tmp = [];
|
||||
location.search.substr(1).split("&")
|
||||
location.search.substring(1).split("&")
|
||||
.forEach(function (item) {
|
||||
tmp = item.split("=");
|
||||
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
|
||||
|
||||
Reference in New Issue
Block a user