File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments