Skip to content

Commit

Permalink
Fix for metal#259
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed Sep 21, 2017
1 parent 8fd2a85 commit f8392c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metal-state/src/State.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import { async, getStaticProperty, isDefAndNotNull, isFunction, isObject, isString, object } from 'metal';
import { async, getStaticProperty, isDef, isDefAndNotNull, isFunction, isObject, isString, object } from 'metal';
import { EventEmitter } from 'metal-events';

/**
Expand Down Expand Up @@ -553,7 +553,7 @@ class State extends EventEmitter {
* @protected
*/
setInitialValue_(name) {
if (this.hasInitialValue_(name)) {
if (this.hasInitialValue_(name) && isDef(this.initialValues_[name])) {
this.set(name, this.initialValues_[name]);
this.initialValues_[name] = undefined;
}
Expand Down

0 comments on commit f8392c8

Please sign in to comment.