From 40cd88f6e7a2412de65d3995861a8d5b527b127b Mon Sep 17 00:00:00 2001 From: Sustainability and Tech <39064649+TechandEco@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:36:15 +0000 Subject: [PATCH] fix type errors --- src/routes/sections/BuildingInsightsSection.svelte | 2 +- src/routes/sections/Sections.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/sections/BuildingInsightsSection.svelte b/src/routes/sections/BuildingInsightsSection.svelte index e56f0e3..6e09016 100644 --- a/src/routes/sections/BuildingInsightsSection.svelte +++ b/src/routes/sections/BuildingInsightsSection.svelte @@ -93,7 +93,7 @@ // Create the solar panels on the map. const solarPotential = buildingInsights.solarPotential; - const palette = createPalette(panelsPalette, 256).map(rgbToColor); + const palette = createPalette(panelsPalette).map(rgbToColor); const minEnergy = solarPotential.solarPanels.slice(-1)[0].yearlyEnergyDcKwh; const maxEnergy = solarPotential.solarPanels[0].yearlyEnergyDcKwh; solarPanels = solarPotential.solarPanels.map((panel) => { diff --git a/src/routes/sections/Sections.svelte b/src/routes/sections/Sections.svelte index 3c20518..aa64889 100644 --- a/src/routes/sections/Sections.svelte +++ b/src/routes/sections/Sections.svelte @@ -63,8 +63,8 @@ bind:expandedSection bind:buildingInsights bind:configId - bind:panelCapacityWattsInput bind:showPanels + bind:panelCapacityWatts={panelCapacityWattsInput} {googleMapsApiKey} {geometryLibrary} {location}