not rendering hidden resource container

This commit is contained in:
Rudis Muiznieks 2021-08-21 12:50:47 -05:00
parent 00f228b331
commit fb72e52786
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ class DebugRenderer implements IRenderer {
head.appendChild(style);
// create containers for each resource type
for (const item in ResourceType) {
if (isNaN(Number(item))) {
if (isNaN(Number(item))
&& ResourceType[item] !== ResourceType.Hidden) {
const el: HTMLElement = document.createElement('div');
el.id = `resource-container-${ResourceType[item]}`;
el.className = 'resource-type-container';