Skip to content

Commit

Permalink
Update repo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 11, 2025
1 parent c501bcc commit 456973a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/tools/community-repos/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -190,7 +192,7 @@ const Page = () => {
actions={[
{
label: "View Template",
customFunction: (row) => handleJsonView(row.url),
customFunction: (row) => handleJsonView(row.path),
noConfirm: true,
icon: <EyeIcon />,
hideBulk: true,
Expand Down

0 comments on commit 456973a

Please sign in to comment.