Skip to content

Commit

Permalink
fix: props issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Jan 15, 2025
1 parent 32ff741 commit 53aa776
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/actionbar/GraphActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ import { View } from "@/types";
import { ShareUrlButton } from "./ShareUrlButton";
import { ActionBarSeparator } from "./FormActionBar";

function GraphActionBar({
refreshGraph,
domain,
}: {
refreshGraph: () => void;
domain?: any[];
}) {
function GraphActionBar({ refreshGraph }: { refreshGraph: () => void }) {
const { t } = useLocale();
const {
availableViews,
Expand Down Expand Up @@ -69,7 +63,7 @@ function GraphActionBar({
previousView={previousView}
/>
<ActionBarSeparator />
<ShareUrlButton domain={domain} />
<ShareUrlButton searchParams={searchParams} />
</Space>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/views/actionViews/GraphActionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export const GraphActionView = (props: GraphActionViewProps) => {
<>
<TitleHeader title={viewData.title || viewData.name}>
<GraphActionBar
domain={mergeParams(searchParams || [], domain)}
refreshGraph={() => {
(graphRef.current as any).refresh();
}}
Expand Down

0 comments on commit 53aa776

Please sign in to comment.