fix: default to all regions enabled for new monitors
This commit is contained in:
@@ -82,8 +82,8 @@
|
||||
</div>
|
||||
|
||||
<%
|
||||
// Default to eu-central if no regions selected
|
||||
const selectedRegions = (monitor.regions && monitor.regions.length) ? monitor.regions : ['eu-central'];
|
||||
// Default to all regions if none selected
|
||||
const selectedRegions = (monitor.regions && monitor.regions.length) ? monitor.regions : regions.map(r => r[0]);
|
||||
%>
|
||||
<div>
|
||||
<label class="block text-sm text-gray-400 mb-1.5">Regions</label>
|
||||
|
||||
Reference in New Issue
Block a user