mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-09 12:29:17 +00:00
This commit is contained in:
parent
371e513249
commit
852a5ff045
@ -8,6 +8,7 @@ import {toast} from "react-toastify";
|
|||||||
import {useRecoilValue} from "recoil";
|
import {useRecoilValue} from "recoil";
|
||||||
import focusedEntryIdAtom from "../recoil/focusedEntryId";
|
import focusedEntryIdAtom from "../recoil/focusedEntryId";
|
||||||
import Api from "../helpers/api";
|
import Api from "../helpers/api";
|
||||||
|
import queryAtom from "../recoil/query";
|
||||||
|
|
||||||
const useStyles = makeStyles(() => ({
|
const useStyles = makeStyles(() => ({
|
||||||
entryTitle: {
|
entryTitle: {
|
||||||
@ -82,6 +83,7 @@ const api = Api.getInstance();
|
|||||||
export const EntryDetailed = () => {
|
export const EntryDetailed = () => {
|
||||||
|
|
||||||
const focusedEntryId = useRecoilValue(focusedEntryIdAtom);
|
const focusedEntryId = useRecoilValue(focusedEntryIdAtom);
|
||||||
|
const query = useRecoilValue(queryAtom);
|
||||||
const [entryData, setEntryData] = useState(null);
|
const [entryData, setEntryData] = useState(null);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -89,7 +91,7 @@ export const EntryDetailed = () => {
|
|||||||
setEntryData(null);
|
setEntryData(null);
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
const entryData = await api.getEntry(focusedEntryId);
|
const entryData = await api.getEntry(focusedEntryId, query);
|
||||||
setEntryData(entryData);
|
setEntryData(entryData);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response?.data?.type) {
|
if (error.response?.data?.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user