Skip to content

Commit 03fed53

Browse files
author
Juntao Qiu
committed
removed saved item hacks
1 parent 8164cc6 commit 03fed53

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

src/components/SavedItemPane.jsx

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -129,40 +129,7 @@ export default class SavedItemPane extends Component {
129129
}
130130

131131
filteredItems() {
132-
// !null === true, !'' === true, !' ' === false
133-
return [
134-
{
135-
"title": "Basic",
136-
"mainSizes": [30, 70],
137-
"htmlMode": "html",
138-
"cssMode": "css",
139-
"jsMode": "js",
140-
"layoutMode": 1,
141-
"js": "// This is a sample\nA.method() {\n if(condition) {\n B.method()\n }\n}",
142-
"html": ""
143-
},
144-
{
145-
"title": "Basic",
146-
"mainSizes": [30, 70],
147-
"htmlMode": "html",
148-
"cssMode": "css",
149-
"jsMode": "js",
150-
"layoutMode": 1,
151-
"js": "// This is a sample\nA.method() {\n if(condition) {\n B.method()\n }\n}",
152-
"html": ""
153-
},
154-
{
155-
"title": "Basic",
156-
"mainSizes": [30, 70],
157-
"htmlMode": "html",
158-
"cssMode": "css",
159-
"jsMode": "js",
160-
"layoutMode": 1,
161-
"js": "// This is a sample\nA.method() {\n if(condition) {\n B.method()\n }\n}",
162-
"html": ""
163-
},
164-
]
165-
// return this.items.filter(item => !this.state.searchText || item.title.toLowerCase().indexOf(this.state.searchText) !== -1);
132+
return this.items.filter(item => !this.state.searchText || item.title.toLowerCase().indexOf(this.state.searchText) !== -1);
166133
}
167134

168135
render() {

0 commit comments

Comments
 (0)