Skip to content

Commit

Permalink
fix more missing optional chainings
Browse files Browse the repository at this point in the history
  • Loading branch information
XiNiHa committed Nov 5, 2024
1 parent 6463bae commit 6fe5ef3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-rings-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@contentstech/stackflow-plugin-omniflow": patch
---

Fix more missing optional chainings
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
"solid-js": "^1.9.2",
"typescript": "^5.6.3"
},
"files": [
"dist"
],
"files": ["dist"],
"license": "MIT",
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import type {
} from "@stackflow/config";
import { id } from "@stackflow/core";
import { type Plugin as SerovalPlugin, deserialize, serialize } from "seroval";
import { createMemo } from "solid-js";
import { Dynamic } from "solid-js/web";
import { ChildProvider } from "./child.js";

Expand Down Expand Up @@ -113,7 +112,7 @@ export function omniflow<ActivityName extends string>({
if (topActivity) {
const topEnvOptions = getEnvOptions(topActivity.name);
if (
(topEnvOptions?.subview.children as string[]).includes(
(topEnvOptions?.subview.children as string[] | undefined)?.includes(
actionParams.activityName,
)
) {
Expand Down

0 comments on commit 6fe5ef3

Please sign in to comment.