mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-10 14:22:53 +01:00
fix: Allow empty description
This commit is contained in:
@@ -52,11 +52,11 @@ export class ExternalCloudService {
|
||||
const broker = brokers.find((x) => x.id === options.id);
|
||||
if (!broker) return false;
|
||||
|
||||
if (options.name) broker.name = options.name;
|
||||
if (options.description) broker.description = options.description;
|
||||
if (options.appId) broker.appId = options.appId;
|
||||
if (options.masterKey) broker.masterKey = options.masterKey;
|
||||
if (options.url) broker.endpoint = options.url;
|
||||
if (typeof options.name !== undefined) broker.name = options.name;
|
||||
if (typeof options.description !== undefined) broker.description = options.description;
|
||||
if (typeof options.appId !== undefined) broker.appId = options.appId;
|
||||
if (typeof options.masterKey !== undefined) broker.masterKey = options.masterKey;
|
||||
if (typeof options.url !== undefined) broker.endpoint = options.url;
|
||||
|
||||
await JSONStorage.set('externalBrokers', { brokers });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user