forked from AkkomaGang/akkoma-fe
quickfix
This commit is contained in:
parent
63df815dd9
commit
f48e3d0db8
3 changed files with 6 additions and 6 deletions
|
@ -4,8 +4,8 @@ import Status from '../status/status.vue'
|
||||||
const sortById = (a, b) => {
|
const sortById = (a, b) => {
|
||||||
const seqA = Number(a.action.id)
|
const seqA = Number(a.action.id)
|
||||||
const seqB = Number(b.action.id)
|
const seqB = Number(b.action.id)
|
||||||
const isSeqA = Number.isNaN(seqA)
|
const isSeqA = !Number.isNaN(seqA)
|
||||||
const isSeqB = Number.isNaN(seqB)
|
const isSeqB = !Number.isNaN(seqB)
|
||||||
if (isSeqA && isSeqB) {
|
if (isSeqA && isSeqB) {
|
||||||
return seqA > seqB ? -1 : 1
|
return seqA > seqB ? -1 : 1
|
||||||
} else if (isSeqA && !isSeqB) {
|
} else if (isSeqA && !isSeqB) {
|
||||||
|
|
|
@ -84,8 +84,8 @@ const mergeOrAdd = (arr, obj, item) => {
|
||||||
const sortById = (a, b) => {
|
const sortById = (a, b) => {
|
||||||
const seqA = Number(a.id)
|
const seqA = Number(a.id)
|
||||||
const seqB = Number(b.id)
|
const seqB = Number(b.id)
|
||||||
const isSeqA = Number.isNaN(seqA)
|
const isSeqA = !Number.isNaN(seqA)
|
||||||
const isSeqB = Number.isNaN(seqB)
|
const isSeqB = !Number.isNaN(seqB)
|
||||||
if (isSeqA && isSeqB) {
|
if (isSeqA && isSeqB) {
|
||||||
return seqA > seqB ? -1 : 1
|
return seqA > seqB ? -1 : 1
|
||||||
} else if (isSeqA && !isSeqB) {
|
} else if (isSeqA && !isSeqB) {
|
||||||
|
|
|
@ -12,8 +12,8 @@ export const visibleTypes = store => ([
|
||||||
const sortById = (a, b) => {
|
const sortById = (a, b) => {
|
||||||
const seqA = Number(a.action.id)
|
const seqA = Number(a.action.id)
|
||||||
const seqB = Number(b.action.id)
|
const seqB = Number(b.action.id)
|
||||||
const isSeqA = Number.isNaN(seqA)
|
const isSeqA = !Number.isNaN(seqA)
|
||||||
const isSeqB = Number.isNaN(seqB)
|
const isSeqB = !Number.isNaN(seqB)
|
||||||
if (isSeqA && isSeqB) {
|
if (isSeqA && isSeqB) {
|
||||||
return seqA > seqB ? -1 : 1
|
return seqA > seqB ? -1 : 1
|
||||||
} else if (isSeqA && !isSeqB) {
|
} else if (isSeqA && !isSeqB) {
|
||||||
|
|
Loading…
Reference in a new issue