Tried to added state but not working

Got an issue as it is not happy getting with Items() call on state