Skip to content

Commit

Permalink
fix: remove incorrect linebreak character in url paths of requests in…
Browse files Browse the repository at this point in the history
… safari
  • Loading branch information
chriskari committed Oct 21, 2024
1 parent d2f6908 commit b60fc52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/resources/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const usePrepareDetailsProps = ({
namespaceId,
showYamlTab,
}) => {
const encodedResourceName = encodeURIComponent(resourceName);
const encodedResourceName = encodeURIComponent(resourceName?.trimEnd());
const queryParams = new URLSearchParams(window.location.search);
const { i18n, t } = useTranslation();
const api = apiGroup ? `apis/${apiGroup}/${apiVersion}` : `api/${apiVersion}`;
Expand Down
5 changes: 3 additions & 2 deletions src/shared/components/GenericList/GenericList.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,10 @@ export const GenericList = ({
};

const handleRowClick = e => {
const item =
const item = (
e.target.children[nameColIndex].children[0].innerText ??
e.target.children[nameColIndex].innerText;
e.target.children[nameColIndex].innerText
)?.trimEnd();

const hasNamepace = namespaceColIndex !== -1;
const itemNamespace = hasNamepace
Expand Down

0 comments on commit b60fc52

Please sign in to comment.