From 71698f4f76005e1dd4acd4c86ec4ce58b3bf66db Mon Sep 17 00:00:00 2001 From: Cory Streiff Date: Sun, 24 Nov 2024 20:42:41 +0100 Subject: [PATCH] Refactor and switch back to previous solution --- .../utils/distributions_and_transfers.js | 105 ++++++++---------- 1 file changed, 47 insertions(+), 58 deletions(-) diff --git a/app/javascript/utils/distributions_and_transfers.js b/app/javascript/utils/distributions_and_transfers.js index b11112fcfb..0d6c913cd0 100644 --- a/app/javascript/utils/distributions_and_transfers.js +++ b/app/javascript/utils/distributions_and_transfers.js @@ -3,55 +3,26 @@ import $ from 'jquery'; // Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. -function newOption(item, selected) { - if (selected == null) { - selected = false; - } - let content = `