Fix description export

This commit is contained in:
Simon Gruber
2026-05-05 19:32:49 +02:00
parent 2b42033c70
commit d037f1ded0
2 changed files with 5 additions and 2 deletions
@@ -6,6 +6,7 @@ import ExportSelectionModal, { type ExportSelectionState } from "../modals/Expor
type MenuConfigImportExportProps = {
config?: OrderFormConfig | null;
description?: string;
onImportConfig?: (config: OrderFormConfig) => void | Promise<void>;
showImport?: boolean;
showExport?: boolean;
@@ -23,6 +24,7 @@ function normalizeConfig(value: unknown): OrderFormConfig {
export default function MenuConfigImportExport({
config,
description,
onImportConfig,
showImport = true,
showExport = true,
@@ -98,8 +100,8 @@ export default function MenuConfigImportExport({
payload.title = fileNameBase || "";
}
if (exportSelection.description) {
payload.description = "";
if (exportSelection.description || description) {
payload.description = description || "";
}
if (exportSelection.menu) {
@@ -76,6 +76,7 @@ export default function ReadOnlyOrderOverviewCard({
extra={
<MenuConfigImportExport
config={currentConfig}
description={currentDescription}
showImport={false}
onImportConfig={onImportConfig}
fileNameBase={order.title || "order"}