fix: default to all regions enabled for new monitors
This commit is contained in:
parent
56114a3852
commit
fad343c85a
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue