Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Mar 2, 2024
1 parent 11eb0b4 commit aaa1ea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/inspector/ViewTree.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Split, { SplitDirection } from "@devbookhq/splitter";
import { DragIndicatorOutlined } from "@mui/icons-material";
import { Box, alpha, useTheme } from "@mui/material";
import { Box, useTheme } from "@mui/material";
import { Flex } from "components/generic/Flex";
import _, {
filter,
Expand Down
3 changes: 2 additions & 1 deletion client/src/layers/trace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ function use2DPath(layer?: TraceLayer, index: number = 0, step: number = 0) {
const { palette } = useTheme();
const { getPath } = useMemo(
() =>
layer?.source?.playback !== "playing" &&
layer?.source?.parsedTrace?.content
? makePathIndex(layer.source.parsedTrace.content)
: { getParent: constant(undefined), getPath: constant([]) },
[layer?.source?.parsedTrace?.content]
[layer?.source?.parsedTrace?.content, layer?.source?.playback]
);
const element = useMemo(() => {
if (layer?.source?.parsedTrace?.content?.render?.path) {
Expand Down

0 comments on commit aaa1ea0

Please sign in to comment.