feat: Allow navigating to user group from user edit
This commit allow navigating from user edit to user group, allowing faster updates to groups. The querystringValue function was moved to lib/utils to reuse it in multiple places.
This commit is contained in:
committed by
Athanasios Oikonomou
parent
62506b1955
commit
5543f30c49
@@ -1583,3 +1583,9 @@ export const extractContentFromFile = async (file, pdfjsLib = null) => {
|
||||
throw new Error('Unsupported or non-text file type: ' + (file.name || type));
|
||||
}
|
||||
};
|
||||
|
||||
export const querystringValue = (key: string): string | null => {
|
||||
const querystring = window.location.search;
|
||||
const urlParams = new URLSearchParams(querystring);
|
||||
return urlParams.get(key);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user