Skip to content

Commit a301095

Browse files
committed
Complete rewrite of combo
Most important point: we have complete control over the events that can be fired. For example, reselecting the same option is OK and fires an event. Also: * Attempts to look Windows-y * Supports filtering via text etc
1 parent 69021de commit a301095

File tree

8 files changed

+1318
-1070
lines changed

8 files changed

+1318
-1070
lines changed

dist/assets/index-8214dd7b.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-BYTtJA2H.js

Lines changed: 0 additions & 981 deletions
This file was deleted.

dist/assets/index-CCWCbohx.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/assets/index-dd473db0.js

Lines changed: 919 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.html

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,9 @@ const App = () => {
844844
);
845845
}
846846

847-
const { Event } = JSON.parse(localStorage.getItem(serverEvent?.ID));
848-
const { Info } = Event;
847+
const storedData = JSON.parse(localStorage.getItem(serverEvent?.ID)) || {};
848+
const Event = storedData.Event || {};
849+
const Info = Event.Info;
849850
const serverPropertiesObj = {};
850851
serverEvent.Properties.forEach((key) => {
851852
if (key === "Value") {
@@ -1072,8 +1073,9 @@ const App = () => {
10721073
);
10731074
}
10741075

1075-
const { Event } = JSON.parse(localStorage.getItem(serverEvent?.ID));
1076-
const { Info } = Event;
1076+
const storedData = JSON.parse(localStorage.getItem(serverEvent?.ID)) || {};
1077+
const Event = storedData.Event || {};
1078+
const Info = Event.Info;
10771079

10781080
return webSocket.send(
10791081
updateAndStringify({

0 commit comments

Comments
 (0)