Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Niklasson <[email protected]>
  • Loading branch information
johnnadeluy and ssb-jnk committed Mar 6, 2024
1 parent 7bfb6ee commit 52f2219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/SharedBucketDetail/SharedBucketDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import styles from '../../components/PageLayout/pagelayout.module.scss'

import PageLayout from '../../components/PageLayout/PageLayout'
import PageSkeleton from '../../components/PageSkeleton/PageSkeleton'
import FormattedTableColumn from '../../components/FormattedTableColumn'
import Table, { TableData } from '../../components/Table/Table'
import { ApiError } from '../../utils/services'
import { Team, SharedBucket, SharedBucketDetail, getSharedBucketDetailData } from '../../services/sharedBucketDetail'

import { DaplaCtrlContext } from '../../provider/DaplaCtrlProvider'

import { useState, useEffect, useContext } from 'react'
import { useParams } from 'react-router-dom'
import { Dialog, LeadParagraph, Text } from '@statisticsnorway/ssb-component-library'
import { Team, SharedBucket, SharedBucketDetail, getSharedBucketsDetailData } from '../../services/sharedBucketsDetail'
import FormattedTableColumn from '../../components/FormattedTableColumn'

const SharedBucketDetail = () => {
const { setBreadcrumbTeamDetailDisplayName, setBreadcrumbBucketDetailDisplayName } = useContext(DaplaCtrlContext)
Expand All @@ -35,7 +35,7 @@ const SharedBucketDetail = () => {

useEffect(() => {
if (!teamId && !shortName) return
getSharedBucketsDetailData(teamId as string, shortName as string)
getSharedBucketDetailData(teamId as string, shortName as string)
.then((response) => {
setSharedBucketData(response)
setSharedBucketTableData(prepSharedBucketTableData(response))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const fetchSharedBucketDetailData = async (teamId: string, shortName: str
}
}

export const getSharedBucketsDetailData = async (teamId: string, shortName: string): Promise<SharedBucketDetail> => {
export const getSharedBucketDetailData = async (teamId: string, shortName: string): Promise<SharedBucketDetail> => {
try {
const [team, sharedBucket] = await Promise.all([
fetchTeamDetail(teamId),
Expand Down

0 comments on commit 52f2219

Please sign in to comment.