Skip to content

Commit

Permalink
fixup! Schedules editor: exclude closed accounts in Account autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
trevdor committed Dec 30, 2022
1 parent c33dc8d commit b131879
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ export const Transaction = React.memo(function Transaction(props) {
<AccountAutocomplete
value={accountId}
accounts={accounts}
includeClosedAccounts
shouldSaveFromKey={shouldSaveFromKey}
tableBehavior={true}
focused={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ export default function ScheduleDetails() {
<FormField style={{ flex: 1 }}>
<FormLabel title="Account" />
<AccountAutocomplete
includeClosedAccounts={false}
value={state.fields.account}
inputProps={{ placeholder: '(none)' }}
onSelect={id =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default function GenericInput({
content = (
<AccountAutocomplete
accounts={accounts}
includeClosedAccounts
value={value}
multi={multi}
openOnFocus={false}
Expand Down
2 changes: 1 addition & 1 deletion packages/loot-design/src/components/AccountAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function AccountList({

export default function AccountAutocomplete({
embedded,
includeClosedAccounts = false,
includeClosedAccounts = true,
...props
}) {
let accounts = useCachedAccounts() || [];
Expand Down
1 change: 0 additions & 1 deletion packages/loot-design/src/components/modals/EditField.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ function EditField({
<AccountAutocomplete
value={null}
accounts={accounts}
includeClosedAccounts
focused={true}
embedded={true}
onSelect={value => {
Expand Down

0 comments on commit b131879

Please sign in to comment.