fix: incorrect polyvinyl init name in history

This commit is contained in:
Valeriy
2019-01-09 03:39:05 +03:00
committed by Stuart Taylor
parent d263ed4ed7
commit 02f3714735

View File

@ -71,7 +71,7 @@ export function createPoly({ name, ext, contents, history, ...rest } = {}) {
return {
...rest,
history: Array.isArray(history) ? history : [name + ext],
history: Array.isArray(history) ? history : [name + '.' + ext],
name,
ext,
path: name + '.' + ext,