Skip to content
Prev Previous commit
Next Next commit
Syntax errors fixed
  • Loading branch information
kpinnipa committed Jul 30, 2020
commit fb54db791f6635787f16bfe091f6c192d74d9af6
2 changes: 1 addition & 1 deletion src/CodeSnippetDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class CodeSnippetDisplay extends React.Component<
};

// Bold text in snippet DisplayName based on search
private boldNameOnSearch = (filter: string, displayed: string) => {
private boldNameOnSearch = (filter: string, displayed: string): any => {
const name: string = displayed;
if (filter !== '') {
const startIndex: number = name.indexOf(filter);
Expand Down
2 changes: 1 addition & 1 deletion src/PreviewSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Preview<T> extends Widget {

if (Preview.tracker.size > 0) {
const previous = Preview.tracker.currentWidget;
if (previous._title != this._title) {
if (previous._title !== this._title) {
document
.getElementsByClassName('drag-hover')
[previous._id].classList.remove('drag-hover-clicked');
Expand Down