We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbe5270 + 2e39f0b commit 2a6c99fCopy full SHA for 2a6c99f
src/pages/workspace/categories/ImportedCategoriesPage.tsx
@@ -25,7 +25,7 @@ function ImportedCategoriesPage({route}: ImportedCategoriesPageProps) {
25
const {translate} = useLocalize();
26
const [spreadsheet] = useOnyx(ONYXKEYS.IMPORTED_SPREADSHEET);
27
const [isImportingCategories, setIsImportingCategories] = useState(false);
28
- const {containsHeader} = spreadsheet ?? {};
+ const {containsHeader = true} = spreadsheet ?? {};
29
const [isValidationEnabled, setIsValidationEnabled] = useState(false);
30
const policyID = route.params.policyID;
31
const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policyID}`);
0 commit comments