await setUserStyling()

in packages/graph-explorer/src/workspaces/DataExplorer/DataExplorer.tsx [212:236]


      await setUserStyling(async prevStyling => {
        const prevValue = await prevStyling;
        const vtItem =
          clone(prevValue.vertices?.find(v => v.type === vertexType)) ||
          ({} as VertexPreferences);

        if (field === "name") {
          vtItem.displayNameAttribute = value as string;
        }

        if (field === "longName") {
          vtItem.longDisplayNameAttribute = value as string;
        }

        return {
          ...prevValue,
          vertices: [
            ...(prevValue.vertices || []).filter(v => v.type !== vertexType),
            {
              ...(vtItem || {}),
              type: vertexType,
            },
          ],
        };
      });