We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f4a35 commit 647b498Copy full SHA for 647b498
1 file changed
dt-assets/js/settings.js
@@ -299,7 +299,8 @@ let color_workload_buttons = (name) => {
299
let selected = jQuery(`.status-button[name=${name}]`);
300
selected.removeClass('hollow');
301
// Use optional chaining and nullish coalescing instead of lodash.get
302
- const color = window.wpApiSettingsPage?.workload_status_options?.[name]?.color ?? '';
+ const color =
303
+ window.wpApiSettingsPage?.workload_status_options?.[name]?.color ?? '';
304
selected.css('background-color', color);
305
selected.blur();
306
}
0 commit comments