Skip to content

Commit 2a6c99f

Browse files
authored
Merge pull request #48655 from software-mansion-labs/categories-import/fix-contains-header
Fix Contains header behavior
2 parents bbe5270 + 2e39f0b commit 2a6c99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/workspace/categories/ImportedCategoriesPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function ImportedCategoriesPage({route}: ImportedCategoriesPageProps) {
2525
const {translate} = useLocalize();
2626
const [spreadsheet] = useOnyx(ONYXKEYS.IMPORTED_SPREADSHEET);
2727
const [isImportingCategories, setIsImportingCategories] = useState(false);
28-
const {containsHeader} = spreadsheet ?? {};
28+
const {containsHeader = true} = spreadsheet ?? {};
2929
const [isValidationEnabled, setIsValidationEnabled] = useState(false);
3030
const policyID = route.params.policyID;
3131
const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policyID}`);

0 commit comments

Comments
 (0)