publish state may be null for draft apps