refactor(sidebar): shorten syntax

Signed-off-by: Varun Patil <radialapps@gmail.com>
monorepo
Varun Patil 2023-10-30 15:21:09 -07:00
parent 1744374329
commit 505ccae762
1 changed files with 2 additions and 11 deletions

View File

@ -66,17 +66,8 @@ export default defineComponent({
// TODO: remove when we have a proper fileinfo standalone library // TODO: remove when we have a proper fileinfo standalone library
// original scripts are loaded from // original scripts are loaded from
// https://github.com/nextcloud/server/blob/5bf3d1bb384da56adbf205752be8f840aac3b0c5/lib/private/legacy/template.php#L120-L122 // https://github.com/nextcloud/server/blob/5bf3d1bb384da56adbf205752be8f840aac3b0c5/lib/private/legacy/template.php#L120-L122
Object.assign( const filesClient = (<any>globalThis.OC.Files).getClient();
globalThis.OCA.Files, Object.assign(globalThis.OCA.Files, { App: { fileList: { filesClient } } }, globalThis.OCA.Files);
{
App: {
fileList: {
filesClient: (<any>globalThis.OC.Files).getClient(),
},
},
},
globalThis.OCA.Files,
);
} }
}, },