diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-01 20:31:39 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-01 20:31:39 -0400 |
| commit | 266590937d3fda5dd96729edaa7c9bfac42370d9 (patch) | |
| tree | 39a0315ff280757c8e07fd4e29a49a9d5e251efd /src/mobile/AudioUpload.tsx | |
| parent | ca64e0257cc4dd43e386c17b3d8b7b30747a7d9f (diff) | |
major performance fix by adding a SharingDocument to the user's DB account so that inquiring the users' UserDoc (and everything it referecens) is no longer necessary.
Diffstat (limited to 'src/mobile/AudioUpload.tsx')
| -rw-r--r-- | src/mobile/AudioUpload.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mobile/AudioUpload.tsx b/src/mobile/AudioUpload.tsx index 36663c85f..ebc8bc8a7 100644 --- a/src/mobile/AudioUpload.tsx +++ b/src/mobile/AudioUpload.tsx @@ -53,7 +53,7 @@ export class AudioUpload extends React.Component { * Pushing the audio doc onto Dash Web through the right side bar */ uploadAudio = () => { - const audioRightSidebar = Cast(Doc.UserDoc().mySharedDocs, Doc) as Doc; + const audioRightSidebar = Cast(Doc.SharingDoc(), Doc, null); const audioDoc = this._audioCol; const data = Cast(audioRightSidebar.data, listSpec(Doc)); for (let i = 1; i < 8; i++) { |
