mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Fix: always parse version as a number
This commit is contained in:
		
							parent
							
								
									6b77ae835b
								
							
						
					
					
						commit
						6753843202
					
				@ -106,7 +106,11 @@ export async function servicesFromDocker() {
 | 
			
		||||
                  type: "service",
 | 
			
		||||
                };
 | 
			
		||||
              }
 | 
			
		||||
              shvl.set(constructedService, value, substituteEnvironmentVars(containerLabels[label]));
 | 
			
		||||
              let substitutedVal = substituteEnvironmentVars(containerLabels[label]);
 | 
			
		||||
              if (value === "widget.version") {
 | 
			
		||||
                substitutedVal = parseInt(substitutedVal, 10);
 | 
			
		||||
              }
 | 
			
		||||
              shvl.set(constructedService, value, substitutedVal);
 | 
			
		||||
            }
 | 
			
		||||
          });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user