diff --git a/.gitattributes b/.gitattributes index 21f3d101a30..a592bc40b1e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -16,4 +16,4 @@ yarn.lock text eol=lf # Denote all files that are truly binary and should not be modified. *.png binary -*.jpg binary \ No newline at end of file +*.jpg binary diff --git a/packages/desktop-client/src/browser-preload.browser.js b/packages/desktop-client/src/browser-preload.browser.js index 803ed2ac5b9..37bd1f53719 100644 --- a/packages/desktop-client/src/browser-preload.browser.js +++ b/packages/desktop-client/src/browser-preload.browser.js @@ -125,6 +125,7 @@ global.Actual = { applyAppUpdate: () => {}, updateAppMenu: isBudgetOpen => {}, + ipcConnect: () => {}, getServerSocket: async () => { return worker; }, diff --git a/packages/desktop-client/src/components/accounts/Account.jsx b/packages/desktop-client/src/components/accounts/Account.jsx index a91ad99ee55..e61c46c68ad 100644 --- a/packages/desktop-client/src/components/accounts/Account.jsx +++ b/packages/desktop-client/src/components/accounts/Account.jsx @@ -463,6 +463,7 @@ class AccountInternal extends PureComponent { onImport = async () => { const accountId = this.props.accountId; const account = this.props.accounts.find(acct => acct.id === accountId); + const categories = await this.props.getCategories(); if (account) { const res = await window.Actual.openFileDialog({ @@ -477,6 +478,7 @@ class AccountInternal extends PureComponent { if (res) { this.props.pushModal('import-transactions', { accountId, + categories, filename: res[0], onImported: didChange => { if (didChange) { diff --git a/packages/desktop-client/src/components/budget/report/ReportComponents.tsx b/packages/desktop-client/src/components/budget/report/ReportComponents.tsx index b50cb9171a0..b33faba456d 100644 --- a/packages/desktop-client/src/components/budget/report/ReportComponents.tsx +++ b/packages/desktop-client/src/components/budget/report/ReportComponents.tsx @@ -189,9 +189,11 @@ export const CategoryMonth = memo(function CategoryMonth({