sanity-plugin-workflow 1.0.0 → 1.0.1
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/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WorkflowTool.tsx +2 -4
package/lib/index.esm.js
CHANGED
|
@@ -1822,7 +1822,7 @@ function WorkflowTool(props) {
|
|
|
1822
1822
|
if (destinationStateIndex === 0) {
|
|
1823
1823
|
newOrder = LexoRank.min().toString();
|
|
1824
1824
|
} else {
|
|
1825
|
-
newOrder = LexoRank.
|
|
1825
|
+
newOrder = LexoRank.min().genNext().toString();
|
|
1826
1826
|
}
|
|
1827
1827
|
} else if (destination.index === 0) {
|
|
1828
1828
|
const firstItemOrderRank = (_b2 = (_a2 = [...destinationStateItems].shift()) == null ? void 0 : _a2._metadata) == null ? void 0 : _b2.orderRank;
|