diff --git a/src/pages/tools/community-repos/repo.js b/src/pages/tools/community-repos/repo.js index 8d965fef3fd9..433b534e683b 100644 --- a/src/pages/tools/community-repos/repo.js +++ b/src/pages/tools/community-repos/repo.js @@ -87,12 +87,14 @@ const Page = () => { } }; - const handleJsonView = (url) => { + const handleJsonView = (path) => { fileQuery.mutate({ url: "/api/ExecGitHubAction", data: { Action: "GetFileContents", - Url: url, + FullName: selectedRepo, + Path: path, + Branch: branch, }, }); setOpenJsonDialog(true); @@ -190,7 +192,7 @@ const Page = () => { actions={[ { label: "View Template", - customFunction: (row) => handleJsonView(row.url), + customFunction: (row) => handleJsonView(row.path), noConfirm: true, icon: , hideBulk: true,