Skip to content

Commit

Permalink
Fix edge case in outputprocessor UI
Browse files Browse the repository at this point in the history
  • Loading branch information
darylc committed Feb 22, 2025
1 parent 229cdb4 commit a7a88ea
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions www/outputprocessors.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,21 +458,25 @@ function DeleteSelectedProcessor() {
}
}

$(document).ready(function () {
$.ajax({
url: "api/models?simple=true",
method: "GET",
dataType: "json",
success: function(models) {
models.unshift("<Use Start Channel>");
SetupSelectableTableRow(tableInfo);
GetOutputProcessors(models);
},
error: function() {
console.error("Error fetching models");
}
});
var models = [];

$(document).ready(function () {
$.ajax({
url: "api/models?simple=true",
method: "GET",
dataType: "json",
success: function(data) {
data.unshift("<Use Start Channel>");
models = data;
SetupSelectableTableRow(tableInfo);
GetOutputProcessors(models);
},
error: function() {
models.unshift("<Use Start Channel>");
SetupSelectableTableRow(tableInfo);
GetOutputProcessors(models);
}
});

if (window.innerWidth > 600) {
$('#outputProcessorsBody').sortable({
Expand Down

0 comments on commit a7a88ea

Please sign in to comment.