aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/init.js')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/init.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/init.js b/server/sonar-web/src/main/js/apps/coding-rules/init.js
index 437505c5eaf..e3e23817c05 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/init.js
+++ b/server/sonar-web/src/main/js/apps/coding-rules/init.js
@@ -36,11 +36,13 @@ import FiltersView from './filters-view';
const App = new Marionette.Application();
-App.on('start', function(options: {
- el: HTMLElement,
- organization: ?string,
- isDefaultOrganization: boolean
-}) {
+App.on('start', function(
+ options: {
+ el: HTMLElement,
+ organization: ?string,
+ isDefaultOrganization: boolean
+ }
+) {
const data = options.organization ? { organization: options.organization } : {};
$.get(window.baseUrl + '/api/rules/app', data)
.done(r => {