Skip to content

Commit

Permalink
10252 - Check if function is new in save logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bferguso committed Nov 9, 2023
1 parent 8f021d9 commit 367af3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arches/app/media/js/views/graph/function-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ require([
var functionsToSave = [];
viewModel.loading(true);
viewModel.appliedFunctionList.items().forEach(function(fn){
if(fn.dirty() || !fn.function.component()){
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 367af3c

Please sign in to comment.