Skip to content

Commit

Permalink
Merge pull request #571 from psarando/CORE-1967-local-contexts
Browse files Browse the repository at this point in the history
CORE-1967 Display Local Contexts Labels/Notices for files as well
  • Loading branch information
psarando authored Apr 18, 2024
2 parents 7f6d463 + 9926730 commit 4881180
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/data/listing/TableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
LocalContextsAttrs,
parseProjectID,
} from "components/models/metadata/LocalContexts";
import ResourceTypes from "components/models/ResourceTypes";

import InstantLaunchButton from "components/instantlaunches";
import { defaultInstantLaunch } from "serviceFacades/instantlaunches";
Expand Down Expand Up @@ -70,12 +69,11 @@ function ResourceNameCell({
const [localContextsProjectURI, setLocalContextsProjectURI] = useState();

const resourceId = resource.id;
const isFolder = resource.type === ResourceTypes.FOLDER;

useQuery({
queryKey: [FILESYSTEM_METADATA_QUERY_KEY, { dataId: resourceId }],
queryFn: () => getFilesystemMetadata({ dataId: resourceId }),
enabled: resourceId && isFolder,
enabled: !!resourceId,
onSuccess: (metadata) => {
const { avus } = metadata;

Expand Down

0 comments on commit 4881180

Please sign in to comment.