mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
More automatic eslint fixes, update baseline and eslint docs
This commit is contained in:
@@ -9,14 +9,18 @@
|
||||
*
|
||||
* @throws {Error} If the related entity ID is undefined.
|
||||
*/
|
||||
export const buildLinkCreate = (workflowName: string, relatedEntityClass: string, relatedEntityId: number|undefined): string => {
|
||||
if (typeof (relatedEntityId) === 'undefined') {
|
||||
export const buildLinkCreate = (
|
||||
workflowName: string,
|
||||
relatedEntityClass: string,
|
||||
relatedEntityId: number | undefined,
|
||||
): string => {
|
||||
if (typeof relatedEntityId === "undefined") {
|
||||
throw new Error("the related entity id is not set");
|
||||
}
|
||||
let params = new URLSearchParams();
|
||||
params.set('entityClass', relatedEntityClass);
|
||||
params.set('entityId', relatedEntityId.toString(10));
|
||||
params.set('workflow', workflowName);
|
||||
const params = new URLSearchParams();
|
||||
params.set("entityClass", relatedEntityClass);
|
||||
params.set("entityId", relatedEntityId.toString(10));
|
||||
params.set("workflow", workflowName);
|
||||
|
||||
return `/fr/main/workflow/create?`+params.toString();
|
||||
return `/fr/main/workflow/create?` + params.toString();
|
||||
};
|
||||
|
Reference in New Issue
Block a user