mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 02:52:37 +00:00 
			
		
		
		
	lib: avoid filtering null values to be used as nil
This commit is contained in:
		
					parent
					
						
							
								954470581e
							
						
					
				
			
			
				commit
				
					
						506b29c726
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -79,7 +79,10 @@ in rec { | ||||||
|               then toLuaObject v |               then toLuaObject v | ||||||
|               else "[${toLuaObject n}] = " + (toLuaObject v)) |               else "[${toLuaObject n}] = " + (toLuaObject v)) | ||||||
|             (filterAttrs |             (filterAttrs | ||||||
|               (_: v: v != null) |               ( | ||||||
|  |                 _: v: | ||||||
|  |                   (v != null) && (toLuaObject v != "{}") | ||||||
|  |               ) | ||||||
|               args))) |               args))) | ||||||
|         + "}" |         + "}" | ||||||
|     else if isList args |     else if isList args | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frothy
				Frothy