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