Skip to content

Commit

Permalink
Migrate status update code in lifecycle editor to tom-select
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Dec 24, 2024
1 parent b7f939c commit 018deec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion share/static/js/lifecycleui-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,12 @@ RT.NewLifecycleEditor ||= class {

if ( element ) {
for (let item of list) {
jQuery(item).val(element[item.name]);
if ( item.tomselect ) {
item.tomselect.setValue(element[item.name]);
}
else {
jQuery(item).val(element[item.name]);
}
}
self.editing_node = element;
}
Expand Down

0 comments on commit 018deec

Please sign in to comment.