fix(ci): format export selection helper

This commit is contained in:
t8y2 committed 2026-08-23 22:25:15 +08:00
1 parent e1f48bdd60
commit e1eb44f626
1 file changed
+1 -6
@@ -7,12 +7,7 @@ export function buildSelectedTablesPayload(allTables: string[], selectedTables:
return allTables.filter((table) => selected.has(table));
}
export function isDatabaseExportTableSelectionValid(options: {
allTableCount: number;
selectedTableCount: number;
includeStructure: boolean;
includeData: boolean;
}): boolean {
export function isDatabaseExportTableSelectionValid(options: { allTableCount: number; selectedTableCount: number; includeStructure: boolean; includeData: boolean }): boolean {
if (!options.includeStructure && !options.includeData) return true;
return options.allTableCount === 0 || options.selectedTableCount > 0;
}