Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: make pattern library state observable
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed May 24, 2018
1 parent d0984df commit 9b8f30c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/pattern-library/pattern-library.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Page, Placeholder, Text } from './builtins';
import * as Fuse from 'fuse.js';
import * as Mobx from 'mobx';
import { Pattern, PatternFolder, PatternSlot, SyntheticPatternType } from '../pattern';
import { PatternPropertyBase, PatternPropertyType } from '../pattern-property';
import * as Types from '../types';
Expand All @@ -24,7 +25,7 @@ export class PatternLibrary {
private patternProperties: PatternPropertyBase[] = [];
private patterns: Pattern[] = [];
private root: PatternFolder;
private state: Types.PatternLibraryState;
@Mobx.observable private state: Types.PatternLibraryState;

public constructor(init: PatternLibraryInit) {
this.bundle = init.bundle;
Expand Down

0 comments on commit 9b8f30c

Please sign in to comment.