Refactor: Organization Store and Leave Function Updates
Some checks failed
Build / Build (push) Failing after 11s
Some checks failed
Build / Build (push) Failing after 11s
This commit refactors the organization store initialization and the leave function. * **Organization Store:** Changes the way the organization store is initialized by using a declaration array. * **Leave Function:** Improves the leave function by correcting a conditional statement to ensure proper handling of organization keys.
This commit is contained in:
parent
63df0b75dc
commit
cf9bf922f1
@ -14,7 +14,7 @@
|
||||
* Organization interface <OBJECT>
|
||||
*/
|
||||
|
||||
private _orgStoreInterface = createHashMapObject [[
|
||||
private _orgStoreDeclaration = [
|
||||
["#type", "IOrganizationStore"],
|
||||
["#create", {
|
||||
private _store = GETMVAR(FORGE_STORE_REG,nil);
|
||||
@ -128,7 +128,8 @@ private _orgStoreInterface = createHashMapObject [[
|
||||
|
||||
true
|
||||
}]
|
||||
]];
|
||||
];
|
||||
|
||||
private _orgStoreInterface = createHashMapObject [_orgStoreDeclaration];
|
||||
SETMVAR(FORGE_ORG_STORE_REG,_orgStoreInterface);
|
||||
GETMVAR(FORGE_ORG_STORE_REG,nil)
|
Loading…
x
Reference in New Issue
Block a user