Chnaged noteable class check
This commit is contained in:
parent
08f14ef448
commit
de6ca8ef3a
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
- project = @target_project || @project
|
||||
- noteable_class = @noteable.nil? ? nil : @noteable.class
|
||||
- noteable_class = @noteable.class if @noteable.present?
|
||||
|
||||
:javascript
|
||||
GitLab.GfmAutoComplete.dataSource = "#{autocomplete_sources_namespace_project_path(project.namespace, project, type: noteable_class, type_id: params[:id])}"
|
||||
|
|
Loading…
Reference in a new issue