Skip to content

Commit

Permalink
fix(tasks): update status selector and workspace provider to disable …
Browse files Browse the repository at this point in the history
…warnings generated
  • Loading branch information
pedrobonamin committed Mar 12, 2024
1 parent 7a3d5f4 commit 9a020bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
WorkspaceProvider,
} from 'sanity'

import {API_VERSION} from '../../../constants/API_VERSION'
import {type FormMode} from '../../../types'
import {taskSchema} from './taskSchema'

Expand All @@ -24,7 +25,7 @@ function TasksAddonWorkspaceProviderInner({
children: React.ReactNode
mode: FormMode
}) {
const client = useClient()
const client = useClient({apiVersion: API_VERSION})
const apiHost = client.config().apiHost
// TODO: Is basePath necessary here?
const basePath = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const StatusMenuButton = forwardRef(function StatusMenuButton(
const icon = TASK_STATUS.find((status) => status.value === value)?.icon
return (
<Button
{...props}
ref={ref}
tooltipProps={null}
icon={icon}
Expand Down

0 comments on commit 9a020bd

Please sign in to comment.