Skip to content

Commit

Permalink
Revert "Change slash to path.sep"
Browse files Browse the repository at this point in the history
This reverts commit 17bfe86.
  • Loading branch information
p-malecki committed Sep 17, 2024
1 parent 17bfe86 commit 92de26c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ContextMenu from "@radix-ui/react-context-menu";
import { InspectDataStackItem } from "../../common/Project";
import { useEffect, useRef } from "react";
import path from "path";

import "./InspectDataMenu.css";

type OnSelectedCallback = (item: InspectDataStackItem) => void;
Expand Down Expand Up @@ -43,7 +43,7 @@ export function InspectDataMenu({
<ContextMenu.Content className="context-menu-content">
{filteredData.map((item) => {
// extract file name from path:
const fileName = item.source.fileName.split(path.sep).pop();
const fileName = item.source.fileName.split("/").pop();
return (
<ContextMenu.Item
className="context-menu-item"
Expand Down

0 comments on commit 92de26c

Please sign in to comment.