Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Commit 6ded493

Browse files
committed
fix: allow string id in LibraryItem to avoid PropType warning for extensions
- Extension IDs are strings, but LibraryItem expected only numbers. - Updated id PropType to accept both numbers and strings. Fixes PropType warning in extension library modal.
1 parent 6de8f03 commit 6ded493

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/containers/library-item.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ LibraryItem.propTypes = {
157157
md5ext: PropTypes.string // 3.0 library format
158158
})
159159
),
160-
id: PropTypes.number.isRequired,
160+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
161161
insetIconURL: PropTypes.string,
162162
internetConnectionRequired: PropTypes.bool,
163163
isPlaying: PropTypes.bool,

0 commit comments

Comments
 (0)