Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall authored and stuzart committed Mar 5, 2024
1 parent c2e115b commit 322076f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/projects/_project_selector.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

$j(document).ready(function () {
// Auto select projects from params[:project_ids] or params[resource][:project_ids] if this is a new object
<% if resource &.new_record? %>
<% if resource&.new_record? %>
<% project_ids = (params[:project_ids] || params.dig(controller_name.singularize, :project_ids) || []).compact_blank %>
<% project_ids.each do |project_id| %>
Sharing.projectsSelector.add(<%= project_id %>, true);
Expand Down

0 comments on commit 322076f

Please sign in to comment.