if (node && 'kind' in node.value && node.value.kind === ResourceKind.COLLECTION) {
const filesTree = await services.collectionService.files(node.value.portableDataHash);
if (node && 'kind' in node.value && node.value.kind === ResourceKind.COLLECTION) {
const filesTree = await services.collectionService.files(node.value.portableDataHash);
export const initSharedProject = (pickerId: string) =>
async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {
dispatch(receiveTreePickerData({
id: '',
pickerId,
export const initSharedProject = (pickerId: string) =>
async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {
dispatch(receiveTreePickerData({
id: '',
pickerId,
extractNodeData: value => ({
id: value.uuid,
status: TreeNodeStatus.INITIAL,
extractNodeData: value => ({
id: value.uuid,
status: TreeNodeStatus.INITIAL,
export const initFavoritesProject = (pickerId: string) =>
async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {
dispatch(receiveTreePickerData({
id: '',
pickerId,
export const initFavoritesProject = (pickerId: string) =>
async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {
dispatch(receiveTreePickerData({
id: '',
pickerId,
extractNodeData: value => ({
id: value.uuid,
status: TreeNodeStatus.INITIAL,
extractNodeData: value => ({
id: value.uuid,
status: TreeNodeStatus.INITIAL,