pass publicCollectionGalleryContext directly as publicCollectProps
This commit is contained in:
parent
3fe80aa368
commit
fa18568074
|
@ -145,16 +145,7 @@ export default function Uploader(props: Props) {
|
|||
setHasLivePhotos,
|
||||
},
|
||||
props.setFiles,
|
||||
{
|
||||
accessedThroughSharedURL:
|
||||
publicCollectionGalleryContext.accessedThroughSharedURL,
|
||||
...(publicCollectionGalleryContext.passwordToken && {
|
||||
passwordToken: publicCollectionGalleryContext.passwordToken,
|
||||
}),
|
||||
token: publicCollectionGalleryContext.accessedThroughSharedURL
|
||||
? publicCollectionGalleryContext.token
|
||||
: galleryContext.token,
|
||||
}
|
||||
publicCollectionGalleryContext
|
||||
);
|
||||
|
||||
if (isElectron() && ImportService.checkAllElectronAPIsExists()) {
|
||||
|
|
Loading…
Reference in a new issue