@symbo.ls/scratch 2.7.5 → 2.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/sequence.js +1 -1
package/package.json
CHANGED
package/src/utils/sequence.js
CHANGED
|
@@ -98,7 +98,7 @@ const switchSequenceOnNegative = (key, base, ratio) => {
|
|
|
98
98
|
export const generateSequence = (sequenceProps) => {
|
|
99
99
|
const { type, base, ratio, range, subSequence } = sequenceProps
|
|
100
100
|
const n = Math.abs(range[0]) + Math.abs(range[1])
|
|
101
|
-
const prefix = '--' + type.replace('.', '-') + '-'
|
|
101
|
+
const prefix = '--' + (type && type.replace('.', '-')) + '-'
|
|
102
102
|
|
|
103
103
|
for (let i = 0; i <= n; i++) {
|
|
104
104
|
const key = range[1] - i
|