Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akphi committed Oct 22, 2022
1 parent 7fbbf97 commit 18f3c1d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
16 changes: 12 additions & 4 deletions packages/legend-application-query/src/stores/LegendQueryRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,16 @@ export const generateQuerySetupRoute = (
addQueryParamsStringToUrl(
generatePath(LEGEND_QUERY_ROUTE_PATTERN.SETUP, {}),
stringifyQueryParams({
[LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN.SHOW_ALL_GROUPS]: showAllGroups,
[LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN.SHOW_ALL_GROUPS]: showAllGroups
? encodeURIComponent(showAllGroups)
: showAllGroups,
[LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN.SHOW_ADVANCED_ACTIONS]:
showAdvancedActions,
[LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN.TAG]: tag,
showAdvancedActions
? encodeURIComponent(showAdvancedActions)
: undefined,
[LEGEND_QUERY_SETUP_QUERY_PARAM_TOKEN.TAG]: tag
? encodeURIComponent(tag)
: undefined,
}),
);

Expand Down Expand Up @@ -143,7 +149,9 @@ export const generateServiceQueryCreatorRoute = (
[LEGEND_QUERY_PATH_PARAM_TOKEN.SERVICE_PATH]: servicePath,
}),
stringifyQueryParams({
[LEGEND_QUERY_QUERY_PARAM_TOKEN.SERVICE_EXECUTION_KEY]: executionKey,
[LEGEND_QUERY_QUERY_PARAM_TOKEN.SERVICE_EXECUTION_KEY]: executionKey
? encodeURIComponent(executionKey)
: executionKey,
}),
);

Expand Down
1 change: 0 additions & 1 deletion packages/legend-application/src/stores/ApplicationStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ export class ApplicationStore<
await navigator.clipboard.writeText(text).catch((error) => {
this.notifyError(error);
});
return;
}

notifyUnsupportedFeature(featureName: string): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export const generateDataSpaceQueryCreatorRoute = (
},
),
stringifyQueryParams({
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]: classPath,
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]: classPath
? encodeURIComponent(classPath)
: undefined,
}),
);

0 comments on commit 18f3c1d

Please sign in to comment.