mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
Misc frontend fixes (#2974)
* fix dependency input warning and extra comma * clean up buttons during install in marketplace preview * chore: grayscale and closing action-bar * fix prerelease precedence * fix duplicate url for addSsl on ssl proto * no warning for soft uninstall * fix: stop logs from repeating disconnected status and add 1 second delay between reconnection attempts * fix stop on reactivation of critical task * fix: fix disconnected toast * fix: updates styles * fix: updates styles * misc fixes * beta.33 * fix updates badge and initialization of marketplace preview controls --------- Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
@@ -26,7 +26,11 @@ export function partialDiff<T>(
|
||||
} else if (typeof prev === "object" && typeof next === "object") {
|
||||
if (prev === null || next === null) return { diff: next }
|
||||
const res = { diff: {} as Record<keyof T, any> }
|
||||
for (let key in next) {
|
||||
const keys = Object.keys(next) as (keyof T)[]
|
||||
for (let key in prev) {
|
||||
if (!keys.includes(key)) keys.push(key)
|
||||
}
|
||||
for (let key of keys) {
|
||||
const diff = partialDiff(prev[key], next[key])
|
||||
if (diff) {
|
||||
res.diff[key] = diff.diff
|
||||
|
||||
Reference in New Issue
Block a user