Skip to content

Commit

Permalink
Fix row selection highlight bug
Browse files Browse the repository at this point in the history
  • Loading branch information
corytheboyd-smartsheet committed Jul 6, 2023
1 parent d540c91 commit c4fcb76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/component/LogList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const LogTable: React.FC = () => {
if (!selectedLog) {
return false;
}
return selectedLog.data.get("ts") === log.data.get("ts");
return selectedLog.id === log.id;
};

return (
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/store/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { JsonObject } from "../jsonTypes";
import { Socket } from "../Socket";

export type Log = {
id: string;
raw: Object;
data: JsonObject;
};
Expand Down
1 change: 1 addition & 0 deletions ui/src/lib/store/useStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const useStore = create<AppStore>()(
getPaths(map).forEach((path) => newPaths.add(path));

const log = {
id: v4(),
raw: raw,
data: map,
};
Expand Down

0 comments on commit c4fcb76

Please sign in to comment.