Skip to content

fix: Observer was breaking because id was null as old data didn't exist#28

Merged
rhoerr merged 1 commit intomage-os-lab:mainfrom
marcelmtz:fix/observer-old-data
Apr 19, 2026
Merged

fix: Observer was breaking because id was null as old data didn't exist#28
rhoerr merged 1 commit intomage-os-lab:mainfrom
marcelmtz:fix/observer-old-data

Conversation

@marcelmtz
Copy link
Copy Markdown

@marcelmtz marcelmtz commented Apr 17, 2026

Summary

Added an early null check in getOldData() before calling loadModel(). If the model has no ID it is a new record with no existing data to compare against, so we return false immediately — consistent with the other early-return cases in the same method.

This fixes issue #27

@rhoerr rhoerr merged commit 18bba25 into mage-os-lab:main Apr 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants