Skip to content
Snippets Groups Projects
Unverified Commit 6354598d authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: (import) fix csv import checkboxes not working (#3478)

parent 55df377a
No related branches found
No related tags found
No related merge requests found
......@@ -862,7 +862,6 @@ export function ImportTransactionsModal({ options }) {
const [flipAmount, setFlipAmount] = useState(false);
const [multiplierEnabled, setMultiplierEnabled] = useState(false);
const [reconcile, setReconcile] = useState(true);
const [previewTrigger, setPreviewTrigger] = useState(0);
const { accountId, categories, onImported } = options;
// This cannot be set after parsing the file, because changing it
......@@ -1368,7 +1367,7 @@ export function ImportTransactionsModal({ options }) {
close();
}
const runImportPreviewCallback = useCallback(async () => {
const runImportPreview = useCallback(async () => {
const transactionPreview = await getImportPreview(
transactions,
filetype,
......@@ -1397,14 +1396,6 @@ export function ImportTransactionsModal({ options }) {
multiplierAmount,
]);
useEffect(() => {
runImportPreviewCallback();
}, [previewTrigger, runImportPreviewCallback]);
function runImportPreview() {
setPreviewTrigger(value => value + 1);
}
const headers = [
{ name: 'Date', width: 200 },
{ name: 'Payee', width: 'flex' },
......
---
category: Bugfix
authors: [MatissJanis]
---
CSV import - fix checkboxes not working.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment