Skip to content

Commit 84404ae

Browse files
sanakdkastl
authored andcommitted
Fix issues show api to return empty geojson correctly
1 parent 5a094c2 commit 84404ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/issues/show.api.rsb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ api.issue do
2626
if @issue.geom
2727
api.geojson (params[:format] == "json") ? @issue.geojson : @issue.geojson.to_json
2828
else
29-
api.geojson ""
29+
api.geojson nil
3030
end
3131

3232
render_api_custom_values @issue.visible_custom_field_values, api

0 commit comments

Comments
 (0)