Skip to content

Commit

Permalink
nit #10252
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Nov 16, 2023
1 parent 367af3c commit ef65139
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arches/app/media/js/views/graph/function-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ require([
var functionsToSave = [];
viewModel.loading(true);
viewModel.appliedFunctionList.items().forEach(function(fn){
if (fn.dirty() || !fn.function.component()
|| (viewModel.selectedFunction() && _.contains(savedFunctions(), viewModel.selectedFunction().function_id) === false)) {
if (
fn.dirty()
|| !fn.function.component()
|| (viewModel.selectedFunction() && _.contains(savedFunctions(), viewModel.selectedFunction().function_id) === false)
) {
functionsToSave.push(fn.toJSON());
}
});
Expand Down

0 comments on commit ef65139

Please sign in to comment.