Skip to content

Commit 03a8723

Browse files
author
AshDyson
committed
(Fix) Add new filter bug, crashing UI
1 parent 5f80dbb commit 03a8723

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

admin/src/page/settings/filter.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ class Filter extends React.Component {
4242
comparison: false,
4343
},
4444
],
45-
action: {
46-
server: false,
47-
path: false,
48-
profile: false,
49-
tag: false,
50-
type: false,
51-
},
45+
action: [
46+
{
47+
server: false,
48+
path: false,
49+
profile: false,
50+
tag: false,
51+
type: false,
52+
},
53+
],
5254
collapse: false,
5355
});
5456
this.setState({
@@ -202,6 +204,7 @@ class Filter extends React.Component {
202204

203205
if (target.dataset.type) {
204206
let current = this.state[target.dataset.type];
207+
console.log(current, target.dataset.type);
205208
if (target.dataset.row === "action") {
206209
let actionRow = target.dataset.actionRow;
207210
console.log(target.dataset);

0 commit comments

Comments
 (0)