Fix template settings

This commit is contained in:
Hazem Krimi
2021-05-31 00:27:27 +01:00
parent b44049b4ce
commit 8b0b36f765
+1 -3
View File
@@ -199,7 +199,6 @@ const TemplateSettings = () => {
src: imageSource, src: imageSource,
}, },
features: template.features?.map((feature) => feature.id), features: template.features?.map((feature) => feature.id),
specification: '',
}, },
specification: { specification: {
introduction: { introduction: {
@@ -386,7 +385,6 @@ const TemplateSettings = () => {
src: template.image.src, src: template.image.src,
}, },
features: template.features?.map((feature) => feature.id), features: template.features?.map((feature) => feature.id),
specification: '',
}, },
specification: { specification: {
introduction: { introduction: {
@@ -438,7 +436,6 @@ const TemplateSettings = () => {
src: template.image.src, src: template.image.src,
}, },
features, features,
specification: '',
}, },
specification: { specification: {
introduction: { introduction: {
@@ -1014,6 +1011,7 @@ const TemplateSettings = () => {
availableFeatures.map((feature) => ( availableFeatures.map((feature) => (
<FeatureCard <FeatureCard
feature={feature} feature={feature}
key={feature.id}
selectable selectable
selected={featuresForm.values.features.includes( selected={featuresForm.values.features.includes(
feature.id feature.id