Skip to content

Commit

Permalink
fix(desk): fixes type for canHandleIntent in documentList (#4969)
Browse files Browse the repository at this point in the history
  • Loading branch information
binoy14 authored Oct 6, 2023
1 parent 4b3a183 commit ad3cf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sanity/src/desk/structureBuilder/GenericList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export abstract class GenericListBuilder<TList extends BuildableGenericList, Con
* @param canHandleIntent - generic list intent checker. See {@link IntentChecker}
* @returns generic list builder based on can handle intent provided.
*/
canHandleIntent(canHandleIntent: IntentChecker): ConcreteImpl {
canHandleIntent(canHandleIntent?: IntentChecker): ConcreteImpl {
return this.clone({canHandleIntent})
}

Expand Down

2 comments on commit ad3cf4f

@vercel
Copy link

@vercel vercel bot commented on ad3cf4f Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

performance-studio – ./

performance-studio.sanity.build
performance-studio-git-next.sanity.build

@vercel
Copy link

@vercel vercel bot commented on ad3cf4f Oct 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.