Skip to content

Commit 23f1280

Browse files
authored
Update utils.js
number is also ok, so comment the error
1 parent eb77c4c commit 23f1280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ export function validateLayout(layout: Layout, contextName: string): void {
453453
}
454454
}
455455
if (item.i && typeof item.i !== 'string') {
456-
throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string!');
456+
// number is also ok, so comment the error
457+
// throw new Error('VueGridLayout: ' + contextName + '[' + i + '].i must be a string!');
457458
}
458459
if (item.static !== undefined && typeof item.static !== 'boolean') {
459460
throw new Error('VueGridLayout: ' + contextName + '[' + i + '].static must be a boolean!');

0 commit comments

Comments
 (0)