Fix selecting the default stock item template (#5318)

This commit is contained in:
Miklós Márton 2023-07-23 11:42:56 +02:00 committed by GitHub
parent feeccc5c91
commit 25334c0d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,8 +94,8 @@ function selectLabel(labels, items, options={}) {
return item.pk == user_settings.DEFAULT_PART_LABEL_TEMPLATE;
else if (options.key == 'location')
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
else if (options.key == 'stock')
return item.pk == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
else if (options.key == 'item')
return item.pk == user_settings.DEFAULT_ITEM_LABEL_TEMPLATE;
return '';
}
);