logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: b44df37c1b6e613c1094938f5605efb85bcf93c8
parent fc18673030513fa663289d051bb0733a97b8e053
Author: Henry Jameson <me@hjkos.com>
Date:   Sun, 31 Jul 2022 12:39:02 +0300

"fix" the sort function potentially not always outputting results

Diffstat:

Msrc/services/theme_data/theme_data.service.js1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/services/theme_data/theme_data.service.js b/src/services/theme_data/theme_data.service.js @@ -138,6 +138,7 @@ export const topoSort = ( if (depsA === depsB || (depsB !== 0 && depsA !== 0)) return ai - bi if (depsA === 0 && depsB !== 0) return -1 if (depsB === 0 && depsA !== 0) return 1 + return 0 // failsafe, shouldn't happen? }).map(({ data }) => data) }