Skip to content

Commit 7de944d

Browse files
authored
Merge pull request #1760 from nextcloud/fix-client
fix: Cannot read properties of undefined getClient
2 parents fa10088 + a1806b8 commit 7de944d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

psalm.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@
4040
<referencedClass name="Doctrine\DBAL\Statement" />
4141
</errorLevel>
4242
</UndefinedDocblockClass>
43+
<InvalidTemplateParam>
44+
<errorLevel type="suppress">
45+
<file name="vendor/nextcloud/ocp/OCP/AppFramework/Controller.php" />
46+
</errorLevel>
47+
</InvalidTemplateParam>
4348
</issueHandlers>
4449
</psalm>

src/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ __webpack_public_path__ = OC.linkTo('notes', 'js/') // eslint-disable-line
1313

1414
Vue.mixin({ methods: { t, n } })
1515

16-
// Make sure that the filesClient is available in the global scope used by the sidebar
17-
// FIXME: Can be dropped once Nextcloud 28 is the minimum supported version
18-
Object.assign(window.OCA.Files, { App: { fileList: { filesClient: OC.Files.getClient() } } }, window.OCA.Files)
19-
2016
export default new Vue({
2117
el: '#content',
2218
store,

0 commit comments

Comments
 (0)