Skip to content

Commit ee89b92

Browse files
Merge pull request #9 from jeffreybernadas/workflow
Fix: Temporary fix for React 19 update where other dependencies are n…
2 parents de1e554 + d9299f3 commit ee89b92

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
registry-url: "https://registry.npmjs.org/"
2222

2323
- name: Install dependencies
24-
run: npm install
24+
run: npm install --legacy-peer-deps
2525

2626
- name: Run Tests
2727
run: npm run test -- --watchAll=false

.github/workflows/storybook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@v4
1212

1313
- name: Install dependencies
14-
run: npm install
14+
run: npm install --legacy-peer-deps
1515

1616
- name: Login to GitHub Pages
1717
run: echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" >> ~/.npmrc

src/components/shadcn/carousel.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ function Carousel({
9595

9696
React.useEffect(() => {
9797
if (!api) return;
98-
onSelect(api);
98+
99+
onSelect();
99100
api.on("reInit", onSelect);
100101
api.on("select", onSelect);
101102

0 commit comments

Comments
 (0)