Fix production build errors
This commit is contained in:
parent
02c7520c90
commit
8d5ecd401d
@ -211,7 +211,8 @@ export default function CalculatorEngine({
|
|||||||
if (config.fields.find((f) => f.id === key && f.type !== 'file' && f.type !== 'text')) {
|
if (config.fields.find((f) => f.id === key && f.type !== 'file' && f.type !== 'text')) {
|
||||||
numValues[key] = toNum(values[key]);
|
numValues[key] = toNum(values[key]);
|
||||||
} else if (config.fields.find((f) => f.id === key && f.type === 'text')) {
|
} else if (config.fields.find((f) => f.id === key && f.type === 'text')) {
|
||||||
numValues[key] = values[key] as any; // Для текстовых полей сохраняем строку
|
// Для текстовых полей сохраняем строку (но в numValues это не используется, только для consistency)
|
||||||
|
numValues[key] = 0; // Текстовые поля не участвуют в числовых расчетах
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -449,6 +450,7 @@ export default function CalculatorEngine({
|
|||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
{photoFile && (
|
{photoFile && (
|
||||||
|
// eslint-disable-next-line @next/next/no-img-element
|
||||||
<img
|
<img
|
||||||
src={URL.createObjectURL(photoFile)}
|
src={URL.createObjectURL(photoFile)}
|
||||||
alt="Предпросмотр"
|
alt="Предпросмотр"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user