diff --git a/InvenTree/templates/status_codes.html b/InvenTree/templates/status_codes.html
index fa448360b6..3b834a6e01 100644
--- a/InvenTree/templates/status_codes.html
+++ b/InvenTree/templates/status_codes.html
@@ -27,6 +27,9 @@ function {{ label }}StatusDisplay(key, options={}) {
label = {{ label }}Codes[key].label;
}
+ // Fallback option for label
+ label = label || 'bg-dark';
+
if (value == null || value.length == 0) {
value = key;
label = '';