Skip to content

Commit

Permalink
Bug Fix: dashboard default select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
saiteja-madha committed Sep 10, 2022
1 parent 95ddd5c commit aa50eb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dashboard/views/manager/basic.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<% }); %>
<option>No channel</option>
<% } else { %>
<option selected="selected">No channel</option>
<option disabled selected value> -- select an option -- </option>
<% guild.channels.cache.filter((ch) => ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); %>
Expand Down Expand Up @@ -138,7 +138,7 @@
<% }); %>
<option>No channel</option>
<% } else { %>
<option selected="selected">No channel</option>
<option disabled selected value> -- select an option -- </option>
<% guild.channels.cache.filter((ch) => ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); %>
Expand Down Expand Up @@ -193,7 +193,7 @@
<% }); %>
<option>No channel</option>
<% } else { %>
<option selected="selected">No channel</option>
<option disabled selected value> -- select an option -- </option>
<% guild.channels.cache.filter((ch) => ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); %>
Expand Down
4 changes: 2 additions & 2 deletions dashboard/views/manager/greeting.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<% guild.channels.cache.filter((ch) => ch.id !== guild.welcome.channel && ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); } else { %>
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === 0).first().name %></option>
<option disabled selected value> -- select an option -- </option>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); %>
Expand Down Expand Up @@ -140,7 +140,7 @@
<% guild.channels.cache.filter((ch) => ch.id !== guild.farewell.channel && ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); } else { %>
<option selected="selected">#<%= guild.channels.cache.filter((ch) => ch.type === 0).first().name %></option>
<option disabled selected value> -- select an option -- </option>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === 0).forEach((ch) => { %>
<option>#<%= ch.name %></option>
<% }); %>
Expand Down

0 comments on commit aa50eb5

Please sign in to comment.