Skip to content

Commit b0231c2

Browse files
committed
fix: nits
1 parent 4ec69da commit b0231c2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/elements/content-sharing/apis/fetchCollaborators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TYPE_FILE, TYPE_FOLDER } from '../../../constants';
33
import type { Collaborations } from '../../../common/types/core';
44
import type { FetchItemProps } from '../types';
55

6-
export const fetchCollaborators = async ({ api, itemId, itemType }: FetchItemProps): Promise<Collaborations> => {
6+
export const fetchCollaborators = async ({ api, itemId, itemType }: FetchItemProps): Promise<Collaborations | null> => {
77
let collabApiInstance;
88
if (itemType === TYPE_FILE) {
99
collabApiInstance = api.getFileCollaborationsAPI(false);

src/elements/content-sharing/utils/__mocks__/ContentSharingV2Mocks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ export const createMockApi = (
152152
getAvatarUrlWithAccessToken: userId => mockAvatarUrlMap[userId] ?? null,
153153
};
154154

155-
const getFileCollaborationsApi = () => ({
155+
const getFileCollaborationsAPI = () => ({
156156
getCollaborations: (itemId, successCallback) => {
157157
setTimeout(() => {
158158
successCallback(collaboratorsResponse);
159159
}, 100);
160160
},
161161
});
162162

163-
const getFolderCollaborationsApi = () => ({
163+
const getFolderCollaborationsAPI = () => ({
164164
getCollaborations: (itemId, successCallback) => {
165165
setTimeout(() => {
166166
successCallback(collaboratorsResponse);
@@ -172,8 +172,8 @@ export const createMockApi = (
172172
getFileAPI: () => mockFileApi,
173173
getFolderAPI: () => mockFolderApi,
174174
getUsersAPI: () => mockUsersApi,
175-
getFileCollaborationsApi,
176-
getFolderCollaborationsApi,
175+
getFileCollaborationsAPI,
176+
getFolderCollaborationsAPI,
177177
};
178178
};
179179

0 commit comments

Comments
 (0)