Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdye committed Oct 22, 2020
1 parent 6c418ca commit b11cedf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/resource-grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import * as fixedCss from './Grid.m.css';
import { createResourceMiddleware } from '@dojo/framework/core/middleware/resources';
import { RenderResult } from '@dojo/framework/core/interfaces';
import TextInput from '../text-input';
import { column } from '../grid/styles/header.m.css';

export interface ColumnConfig {
id: string;
Expand Down
4 changes: 2 additions & 2 deletions src/tree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default factory(function({

function checkNode(id: string, checked: boolean) {
if (checked) {
icache.set('checkedIds', (currentChecked) => [...currentChecked, id]);
icache.set('checkedIds', (currentChecked = []) => [...currentChecked, id]);
} else {
icache.set('checkedIds', (currentChecked) =>
currentChecked ? currentChecked.filter((n) => n !== id) : []
Expand All @@ -135,7 +135,7 @@ export default factory(function({
}

function expandNode(id: string) {
icache.set('expandedIds', (currentExpanded) => [...currentExpanded, id]);
icache.set('expandedIds', (currentExpanded = []) => [...currentExpanded, id]);
onExpand && onExpand(icache.get('expandedIds') || []);
}

Expand Down

0 comments on commit b11cedf

Please sign in to comment.