We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93d11c0 commit 23f4cbcCopy full SHA for 23f4cbc
webview-ui/src/components/chat/ContextMenu.tsx
@@ -111,8 +111,9 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
111
if (option.value) {
112
// remove trailing slash
113
const path = removeLeadingNonAlphanumeric(option.value || "").replace(/\/$/, "")
114
- const filename = path.split("/").at(-1)
115
- const folderPath = path.split("/").slice(0, -1).join("/")
+ const pathList = path.split("/")
+ const filename = pathList.at(-1)
116
+ const folderPath = pathList.slice(0, -1).join("/")
117
return (
118
<div
119
style={{
0 commit comments