Skip to content

Commit 4ffc3f3

Browse files
committed
fix: filter out hash options correctly
1 parent 4e2dae6 commit 4ffc3f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/chrome-options.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ chrome.options.addTab = (name, desc, options) => {
166166
const filterOptions = (options = [], depth) => {
167167
if (tabHashPath.length <= depth) { return options; }
168168
return options.filter(option => {
169-
// Layout field types, such as `column` and `row, have no name.
170-
return !option.name || option.name === tabHashPath[depth];
169+
// Allow layout based options.
170+
return option.type === 'column' || option.type === 'row'
171+
|| option.name === tabHashPath[depth];
171172
}).map((option, depth) => {
172173
option = Object.assign({}, option);
173174
if (option.name) { depth++; }

0 commit comments

Comments
 (0)