Skip to content

Commit 1e2628a

Browse files
committed
Fix dumb mistake of not creating the correct urls
1 parent cda2ffd commit 1e2628a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/blazer/queries/_sharing_modal.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212

1313
<div class="form-group">
1414
<label for="csvShare">CSV</label>
15-
<input type="text" class="form-control" id="csvShare" readonly value="<%= Blazer.sharing.url_for(7, request.url, format: 'csv') %>">
15+
<input type="text" class="form-control" id="csvShare" readonly value="<%= Blazer.sharing.url_for(@query.id, request.url, format: 'csv') %>">
1616
</div>
1717

1818
<div class="form-group">
1919
<label for="csvShare">Google sheets</label>
20-
<input type="text" class="form-control" id="googleShare" readonly value='=IMPORTDATA("<%= Blazer.sharing.url_for(7, request.url, format: 'csv') %>")'>
20+
<input type="text" class="form-control" id="googleShare" readonly value='=IMPORTDATA("<%= Blazer.sharing.url_for(@query.id, request.url, format: 'csv') %>")'>
2121
</div>
2222
</div>
2323
</div>

0 commit comments

Comments
 (0)