diff --git a/CHANGELOG.md b/CHANGELOG.md
index d17890b..d55690a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,10 @@
## [Unreleased]
+## 4.1.1
+### Fixed
+* fix(CssController): add missing NoCSRFRequired import (#397)
+* fix(SideMenu): ncApps must be an array (#369)
+
## 4.1.0
### Added
* add compatibility with NC31
diff --git a/appinfo/info.xml b/appinfo/info.xml
index beb19ab..d6a0f5f 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -31,7 +31,7 @@ Notice
Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**.
In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/).
]]>
- 4.1.0
+ 4.1.1
agpl
Simon Vieille
SideMenu
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 306d0ea..c5181ef 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -144,7 +144,11 @@ class Application extends App implements IBootstrap
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
foreach ($assets as $value) {
- $route = \OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]);
+ $route = \OC::$server->getURLGenerator()->linkToRoute(
+ $value['route'],
+ ['v' => $cache]
+ );
+
$value['attr'][$value['route_attr']] = $route;
Util::addHeader($value['type'], $value['attr'], '');
diff --git a/lib/Controller/CssController.php b/lib/Controller/CssController.php
index e2c9e27..5b3a2dd 100644
--- a/lib/Controller/CssController.php
+++ b/lib/Controller/CssController.php
@@ -26,6 +26,7 @@ use OCA\SideMenu\Service\ConfigProxy;
use OCA\Theming\ThemingDefaults;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
+use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
diff --git a/src/SideMenu.vue b/src/SideMenu.vue
index 2e8bfa3..00bd3d1 100644
--- a/src/SideMenu.vue
+++ b/src/SideMenu.vue
@@ -86,7 +86,7 @@ export default {
},
methods: {
retrieveApps() {
- const ncApps = loadState('core', 'apps', {})
+ const ncApps = loadState('core', 'apps', [])
let orders = {}
let finalApps = []