Skip to content

Commit

Permalink
add a function to check for empty fields #1650
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Jun 6, 2024
1 parent 184f048 commit 29febd7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dataedit/static/peer_review/opr_reviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,14 @@ function cancelPeerReview() {
/**
* Identifies field name and value sets selected stlye and refreshes
* reviewer box (side panel) infos.
* @param {string} fieldKey Name of the field
* @param {string} fieldValue Value of the field
* @param {string} category Metadata catgeory related to the fieldKey
* @param value
*/


function isEmptyValue(value) {
return value === "" || value === "None" || value === "[]";
}

function click_field(fieldKey, fieldValue, category) {
// Check if the category tab needs to be switched
switchCategoryTab(category);
Expand Down Expand Up @@ -868,6 +871,8 @@ window.addEventListener('DOMContentLoaded', function() {
// updatePercentageDisplay() ;
});



function getTotalFieldCount() {
var allFields = makeFieldList();
return allFields.length;
Expand Down

0 comments on commit 29febd7

Please sign in to comment.